From 603ed1a7796b87399013e4aa5a0be99b5da2be0f Mon Sep 17 00:00:00 2001 From: ssmucny Date: Sat, 17 Jun 2023 15:47:08 -0400 Subject: [PATCH] fix event search --- packages/frontend/src/pages/search.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/pages/search.vue b/packages/frontend/src/pages/search.vue index fc09565d85..db3ada3cf5 100644 --- a/packages/frontend/src/pages/search.vue +++ b/packages/frontend/src/pages/search.vue @@ -59,12 +59,14 @@ import * as os from '@/os'; import { $i } from '@/account'; import { instance } from '@/instance'; import MkInfo from '@/components/MkInfo.vue'; +import { $ref } from 'vue/macros'; const XNote = defineAsyncComponent(() => import('./search.note.vue')); const XUser = defineAsyncComponent(() => import('./search.user.vue')); let tab = $ref('note'); let searchQuery = $ref(''); +let key = $ref(''); let searchOrigin = $ref('combined'); let eventSort = $ref('startDate'); let notePagination = $ref(); @@ -75,12 +77,6 @@ let endDate = $ref(null); const notesSearchAvailable = (($i == null && instance.policies.canSearchNotes) || ($i != null && $i.policies.canSearchNotes)); -onMounted(() => { - tab = props.type ?? 'note'; - searchQuery = props.query ?? ''; - searchOrigin = props.origin ?? 'combined'; -}); - async function search() { const query = searchQuery.toString().trim();