Skip to content

Commit

Permalink
Close modal when an event is deleted (obsidian-community#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilmo Satchell authored Dec 16, 2023
1 parent fa83c36 commit b5a7986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/event_modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b5a7986

Please sign in to comment.