From 54b9dd52a01e998c98ea07f2033c904021c2a81e Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:47:03 +0900 Subject: [PATCH] refactor --- packages/frontend/src/pages/search.note.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/pages/search.note.vue b/packages/frontend/src/pages/search.note.vue index e9d44623c5..a390e3fba1 100644 --- a/packages/frontend/src/pages/search.note.vue +++ b/packages/frontend/src/pages/search.note.vue @@ -194,7 +194,7 @@ const fixHostIfLocal = (target: string | null | undefined) => { return target; }; -const searchParams = computed(() => { +const searchParams = computed(() => { const trimmedQuery = searchQuery.value.trim(); if (!trimmedQuery) return null; @@ -204,7 +204,7 @@ const searchParams = computed(() => { query: trimmedQuery, host: fixHostIfLocal(user.value.host), userId: user.value.id, - } as const satisfies SearchParams; + }; } if (instance.federation !== 'none' && searchScope.value === 'server') { @@ -218,19 +218,19 @@ const searchParams = computed(() => { return { query: trimmedQuery, host: fixHostIfLocal(trimmedHost), - } as const satisfies SearchParams; + }; } if (instance.federation === 'none' || searchScope.value === 'local') { return { query: trimmedQuery, host: '.', - } as const satisfies SearchParams; + }; } return { query: trimmedQuery, - } as const satisfies SearchParams; + }; }); function selectUser() {