Removed useless cache writing

This commit is contained in:
Simon Cambier
2022-12-07 18:19:59 +01:00
parent b749f22510
commit 18e7c011bc
3 changed files with 5 additions and 16 deletions

View File

@@ -45,7 +45,7 @@ export async function refreshIndex(): Promise<void> {
const paths = [...notesToReindex].map(n => n.path)
if (paths.length) {
searchEngine.removeFromPaths(paths)
searchEngine.addFromPaths(paths, false)
searchEngine.addFromPaths(paths)
notesToReindex.clear()
// console.log(`Omnisearch - Reindexed ${paths.length} file(s)`)
}