Skip to content

Commit d99a35c

Browse files
authored
fix(search): trigger files fetch when locale changes (#1226)
1 parent 2892287 commit d99a35c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

layer/app/app.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const { data: navigation } = await useAsyncData(() => `navigation_${collectionNa
5353
})
5454
const { data: files } = useLazyAsyncData(`search_${collectionName.value}`, () => queryCollectionSearchSections(collectionName.value as keyof PageCollections), {
5555
server: false,
56+
watch: [locale],
5657
})
5758
5859
provide('navigation', navigation)

0 commit comments

Comments
 (0)