From 55c8de78fc3ada450e6390ef12356de3fdbc161e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 19 Jul 2024 09:20:33 +0200 Subject: [PATCH] perf: VnFilterPanel --- src/components/ui/VnFilterPanel.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index b93ca7121..27b6e7b34 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -110,9 +110,11 @@ async function search(evt) { store.filter.where = {}; isLoading.value = true; - const filter = { ...userParams.value }; + const filter = { ...userParams.value, ...$props.modelValue }; store.userParamsChanged = true; - const { params: newParams } = await arrayData.addFilter({ params: userParams.value }); + const { params: newParams } = await arrayData.addFilter({ + params: filter, + }); userParams.value = newParams; if (!$props.showAll && !Object.values(filter).length) store.data = [];