#25 - quoted expressions for Vault search ok

This commit is contained in:
Simon Cambier
2022-04-26 21:50:05 +02:00
parent fc9c677d42
commit cb7a11c7aa
4 changed files with 68 additions and 12 deletions

View File

@@ -40,14 +40,14 @@ onDestroy(() => {
eventBus.enable("vault")
})
$: {
$: (async () => {
if (searchQuery) {
note = getSuggestions(searchQuery, { singleFilePath })[0] ?? null
note = (await getSuggestions(searchQuery, { singleFilePath }))[0] ?? null
lastSearch = searchQuery
}
selectedIndex = 0
scrollIntoView()
}
})()
$: {
if (note) {