Renamed "reindexNotes" into "refreshIndex"

This commit is contained in:
Simon Cambier
2022-09-30 22:29:26 +02:00
parent d47309f576
commit 5d1e1da45b
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
import { Query } from 'src/query'
import { saveSearchHistory, searchHistory } from 'src/search-history'
import { settings } from '../settings'
import { reindexNotes } from '../notes-index'
import { refreshIndex } from '../notes-index'
export let modal: OmnisearchVaultModal
let selectedIndex = 0
@@ -29,7 +29,7 @@
}
onMount(async () => {
await reindexNotes()
await refreshIndex()
searchQuery = searchHistory[historySearchIndex]
eventBus.enable('vault')
eventBus.on('vault', 'enter', openNoteAndCloseModal)