diff --git a/commands/notePrompts.ts b/commands/notePrompts.ts index cc3e842..2e72fe1 100644 --- a/commands/notePrompts.ts +++ b/commands/notePrompts.ts @@ -50,7 +50,7 @@ export class NotePromptsCommand { editor: Editor, view: MarkdownView ): Promise { - if (!editor || !view) { + if (!NotePromptsCommand.canExecute(editor, view)) { new Notice('No active note found. Please open a note first.'); return; }