Skip to content

Commit

Permalink
Fix incorrect deleteDraftProject logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed May 28, 2024
1 parent b2af1d4 commit 3c26403
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
let deleteProjectModal: ConfirmDeleteModal;
async function deleteProjectOrDraft(project: ProjectItemWithDraftStatus): Promise<void> {
const deleteFn = project.isDraft ? _deleteProject : _deleteDraftProject;
const deleteFn = project.isDraft ? _deleteDraftProject : _deleteProject;
const result = await deleteProjectModal.open(project.name, async () => {
const { error } = await deleteFn(project.id);
return error?.message;
Expand Down

0 comments on commit 3c26403

Please sign in to comment.