This commit is contained in:
Simon Cambier
2022-04-11 18:43:35 +02:00
parent 5ced77af5e
commit f838f42534

View File

@@ -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]