From 78b484baeba93272d245de3c10d4984d85cdd892 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 8 Feb 2024 09:54:17 +0100 Subject: [PATCH 1/2] fix(VnSelecFilter) filter --- src/components/common/VnSelectFilter.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index 31b0f16ad..4bca5a959 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -119,7 +119,7 @@ async function filterHandler(val, update) { myOptions.value = await fetchFilter(val); return; } - myOptions.value = await filter(val, myOptionsOriginal.value); + myOptions.value = filter(val, myOptionsOriginal.value); }, (ref) => { if (val !== '' && ref.options.length > 0) { From 481b022786668d57cadc209ed3b1d6517625d3bb Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 8 Feb 2024 10:10:43 +0100 Subject: [PATCH 2/2] fix(VnSelecFilter) filter --- src/components/common/VnSelectFilter.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index 4bca5a959..659f1c3bd 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -79,7 +79,7 @@ onMounted(() => { if ($props.url && $props.modelValue) fetchFilter($props.modelValue); }); -async function filter(val, options) { +function filter(val, options) { const search = val.toString().toLowerCase(); if (!search) return options;