From c584eaf72363ac27bc919a60727287f6650bd91b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 17 Jan 2024 14:59:16 +0100 Subject: [PATCH] refs #6694 feat change request params filters --- src/components/common/VnLocation.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index b321b731a..add5ff19b 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -67,10 +67,10 @@ function showLabel(data) { return `${data.code} - ${data.town}(${data.province}), ${data.country}`; } -function locationFilter(value) { +function locationFilter(search) { let where = { limit: 30 }; - const params = { value }; - postcodesRef.value.fetch({ where: Object.assign(where, params) }); + const params = { search }; + postcodesRef.value.fetch({ where, args: params }); } function handleFetch( data) { postcodesOptions.value = data;