fix(VnSelect): setOptions when applyFilter #969

Merged
alexm merged 2 commits from warmFix_vnSelect into test 2024-11-19 13:40:21 +00:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 8714980595 - Show all commits

View File

@ -202,7 +202,10 @@ async function fetchFilter(val) {
if (fields) fetchOptions.fields = fields;
if (sortBy) fetchOptions.order = sortBy;
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) {