From def3ca33a26619cb0a38b9d050283c9fc7227125 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 22 Jul 2024 12:52:58 +0200 Subject: [PATCH] fix: refs #7717 fixed searchbar filter with rightmenu filters' applied --- src/components/ui/VnSearchbar.vue | 8 +++++--- src/pages/Order/Card/OrderCatalog.vue | 1 + src/pages/Order/OrderList.vue | 8 ++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index 0c7a8a3f6..6fb204afe 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -100,9 +100,11 @@ onMounted(() => { }); async function search() { - const staticParams = Object.entries(store.userParams).filter( - ([key, value]) => value && (props.staticParams || []).includes(key) - ); + const staticParams = Object.entries(store.userParams); + console.log('staticParams: ', staticParams); + // .filter( + // ([key, value]) => value && (props.staticParams || []).includes(key) + // ); arrayData.reset(['skip', 'page']); if (props.makeFetch) diff --git a/src/pages/Order/Card/OrderCatalog.vue b/src/pages/Order/Card/OrderCatalog.vue index 071827a8b..d1479e3c3 100644 --- a/src/pages/Order/Card/OrderCatalog.vue +++ b/src/pages/Order/Card/OrderCatalog.vue @@ -53,6 +53,7 @@ function extractValueTags(items) {