From e4a62e1197f23e99eb706520a2609d8faabc512f Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 13 Nov 2023 08:12:58 -0800 Subject: [PATCH] Fix props use before props definition --- frontend/src/components/HeaderMain.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/HeaderMain.vue b/frontend/src/components/HeaderMain.vue index f8206c1..77d2d12 100644 --- a/frontend/src/components/HeaderMain.vue +++ b/frontend/src/components/HeaderMain.vue @@ -41,6 +41,10 @@ const documentStore = useDocumentStore() const showSearchInput = ref(false) const search = ref() const searchButton = ref() + const props = defineProps<{ + path: Array + query: string +}>() const closeSearch = (ev: Event) => { if (!showSearchInput.value) return // Already closing @@ -83,11 +87,6 @@ const settingsMenu = (e: Event) => { items, }) } -const props = defineProps<{ - path: Array - query: string -}>() - defineExpose({ toggleSearchInput, closeSearch,