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}`;
}
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;