diff --git a/frontend/src/routes/(authenticated)/admin/AdminProjects.svelte b/frontend/src/routes/(authenticated)/admin/AdminProjects.svelte index d44be5e4e..4e43952b4 100644 --- a/frontend/src/routes/(authenticated)/admin/AdminProjects.svelte +++ b/frontend/src/routes/(authenticated)/admin/AdminProjects.svelte @@ -60,7 +60,7 @@ let deleteProjectModal: ConfirmDeleteModal; async function deleteProjectOrDraft(project: ProjectItemWithDraftStatus): Promise { - 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;