diff --git a/src/ui/event_modal.ts b/src/ui/event_modal.ts index c5aad1a..590a7d7 100644 --- a/src/ui/event_modal.ts +++ b/src/ui/event_modal.ts @@ -88,6 +88,7 @@ export function launchEditModal(plugin: FullCalendarPlugin, eventId: string) { deleteEvent: async () => { try { await plugin.cache.deleteEvent(eventId); + closeModal(); } catch (e) { if (e instanceof Error) { new Notice("Error when deleting event: " + e.message);