0
0
Fork 0

refs #6611 fix: QpoupProxy descriptor bug

This commit is contained in:
Javier Segarra 2024-01-04 10:37:25 +01:00
parent b7847ab351
commit 65b8df79ef
1 changed files with 8 additions and 7 deletions

View File

@ -101,12 +101,15 @@ export function useArrayData(key, userOptions) {
hasMoreData.value = response.data.length === limit;
if (append) {
store.data = response.data.map(({ row }) => row);
} else {
if (!store.data) store.data = [];
for (const row of response.data) store.data.push(row);
}
else {
store.data = response.data;
updateRouter && updateStateParams();
}
updateRouter && updateStateParams();
}
store.isLoading = false;
@ -152,9 +155,7 @@ export function useArrayData(key, userOptions) {
delete store.userParams[param];
delete params[param];
if (store.filter?.where) {
delete store.filter.where[
Object.keys(exprBuilder ? exprBuilder(param) : param)[0]
];
delete store.filter.where[Object.keys(exprBuilder ? exprBuilder(param) : param)[0]];
if (Object.keys(store.filter.where).length === 0) {
delete store.filter.where;
}