From f838f42534ff5f742c4ba2778ecff9d2fa9a5d54 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Mon, 11 Apr 2022 18:43:35 +0200 Subject: [PATCH] Fixed #9 --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 9d63375..f7e6513 100644 --- a/src/main.ts +++ b/src/main.ts @@ -107,6 +107,7 @@ export default class OmnisearchPlugin extends Plugin { } removeFromIndex(path: string): void { + if (!path.endsWith('.md')) return const note = this.notes[path] this.minisearch.remove(note) delete this.notes[path]