diff --git a/apps/frontend/src/lib/components/blocks/base/base-setting.svelte b/apps/frontend/src/lib/components/blocks/base/base-setting.svelte index 4f048620a..09d7d060e 100644 --- a/apps/frontend/src/lib/components/blocks/base/base-setting.svelte +++ b/apps/frontend/src/lib/components/blocks/base/base-setting.svelte @@ -46,11 +46,17 @@ ) const { enhance, form: formData } = form + let open = false + const deleteSpaceMutation = createMutation({ mutationFn: trpc.base.delete.mutate, + onError(error, variables, context) { + toast.error(error.message) + }, async onSuccess() { toast.success("Base deleted successfully") await invalidateAll() + open = false goto("/") }, }) @@ -95,7 +101,7 @@

Danger Zone

Delete Base
- +