refs #6694 feat change request params filters

This commit is contained in:
Javier Segarra 2024-01-17 14:59:16 +01:00
parent d8e7f3acaa
commit c584eaf723
1 changed files with 3 additions and 3 deletions

View File

@ -67,10 +67,10 @@ function showLabel(data) {
return `${data.code} - ${data.town}(${data.province}), ${data.country}`; return `${data.code} - ${data.town}(${data.province}), ${data.country}`;
} }
function locationFilter(value) { function locationFilter(search) {
let where = { limit: 30 }; let where = { limit: 30 };
const params = { value }; const params = { search };
postcodesRef.value.fetch({ where: Object.assign(where, params) }); postcodesRef.value.fetch({ where, args: params });
} }
function handleFetch( data) { function handleFetch( data) {
postcodesOptions.value = data; postcodesOptions.value = data;