fix(VnSelect): setOptions when applyFilter
gitea/salix-front/pipeline/pr-test Build queued...
Details
gitea/salix-front/pipeline/pr-test Build queued...
Details
This commit is contained in:
parent
b26028c6a5
commit
8714980595
|
@ -202,7 +202,10 @@ async function fetchFilter(val) {
|
||||||
if (fields) fetchOptions.fields = fields;
|
if (fields) fetchOptions.fields = fields;
|
||||||
if (sortBy) fetchOptions.order = sortBy;
|
if (sortBy) fetchOptions.order = sortBy;
|
||||||
arrayData.reset(['skip', 'filter.skip', 'page']);
|
arrayData.reset(['skip', 'filter.skip', 'page']);
|
||||||
return (await arrayData.applyFilter({ filter: fetchOptions }))?.data;
|
|
||||||
|
const { data } = await arrayData.applyFilter({ filter: fetchOptions });
|
||||||
|
setOptions(data);
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function filterHandler(val, update) {
|
async function filterHandler(val, update) {
|
||||||
|
|
Loading…
Reference in New Issue