We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 990addd commit cc95743Copy full SHA for cc95743
1 file changed
components/DocsHeader.vue
@@ -21,6 +21,7 @@ interface NavigationItemProps {
21
22
// Search functionality
23
const query = ref('');
24
+const data = ref<SearchItem[]>([]); // Holds search items
25
const isModalOpen = ref(false);
26
const searchInput = ref<HTMLInputElement | null>(null);
27
const route = useRoute();
@@ -42,7 +43,7 @@ const loadSearchIndex = () => {
42
43
searchOptions: { prefix: true, fuzzy: 0.2 },
44
});
45
// Add fresh data
- if (data.value) {
46
+ if (data.value && data.value.length > 0) {
47
miniSearch.addAll(toValue(data.value));
48
}
49
};
0 commit comments