From 5ebeb7fe472c9bca7b29e9460732341716d40c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Segarra=20Mart=C3=ADnez?= Date: Tue, 23 Jan 2024 23:23:51 +0100 Subject: [PATCH] refs #6280 perf locationFilter --- src/components/common/VnLocation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index ee879a62c..674784849 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -72,8 +72,8 @@ onMounted(() => { locationFilter() }) function locationFilter(search) { - let where = { search }; - postcodesRef.value.fetch({ where, limit: 30}); + let args = { filter:{limit: 30}, search}; + postcodesRef.value.fetch({args}); } function handleFetch( data) { postcodesOptions.value = data;