From df04c7afce1670fe41dd3eaa68392b1bb172891f Mon Sep 17 00:00:00 2001 From: anpigon Date: Mon, 22 Aug 2022 16:29:54 +0900 Subject: [PATCH] fix: command --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 68068cc..4210b96 100644 --- a/src/main.ts +++ b/src/main.ts @@ -24,13 +24,13 @@ export default class BookSearchPlugin extends Plugin { this.addCommand({ id: 'open-book-search-modal', name: 'Create new book note', - callback: this.createNewBookNote, + callback: () => this.createNewBookNote(), }); this.addCommand({ id: 'open-book-search-modal-to-insert', name: 'Insert the metadata', - callback: this.insertMetadata, + callback: () => this.insertMetadata(), }); // This adds a settings tab so the user can configure various aspects of the plugin