Skip to content

Commit ed482e8

Browse files
CopilotTechWatching
andcommitted
Fix search functionality by adding navigation prop to UContentSearch
Co-authored-by: TechWatching <15186176+TechWatching@users.noreply.github.com>
1 parent de2ec17 commit ed482e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSe
2828
server: false
2929
})
3030
31+
const { data: navigation } = useLazyAsyncData('navigation', () => queryCollectionNavigation('posts'), {
32+
server: false
33+
})
34+
3135
const links = [{
3236
label: 'Blog',
3337
icon: 'i-lucide-pencil',
@@ -56,6 +60,7 @@ defineShortcuts({
5660
<ClientOnly>
5761
<LazyUContentSearch
5862
:files="files"
63+
:navigation="navigation"
5964
shortcut="meta_k"
6065
:links="links"
6166
:fuse="{ resultLimit: 42 }"

0 commit comments

Comments
 (0)