diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index b321b731ad..add5ff19b6 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;