QpopupProxy descriptor bug #145

Closed
jsegarra wants to merge 3 commits from 6611_popup-proxy_descriptor into dev
1 changed files with 8 additions and 7 deletions
Showing only changes of commit 65b8df79ef - Show all commits

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