From b635010972de48f428748033f6090ab3b042043f Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 11 Dec 2024 14:03:56 +0100 Subject: [PATCH] perf: if searchtext condition --- src/components/ui/VnSearchbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index c3a3c0a03..bdebfd875 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -103,7 +103,7 @@ async function search() { search: searchText.value, }, }; - if (!(searchText.value && searchText.value !== '')) { + if (!searchText.value) { filter = { params: { ...Object.fromEntries(staticParams),