This commit is contained in:
2020-12-08 00:36:50 +00:00
parent 07d92d9820
commit 3fe1a5a651
2 changed files with 10 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ todo: if list view not found / deleted when grid list form is opened rather than
possibly show proper error but for sure select the no filter option automatically
test by setting filter from one browser then delete it from another and refresh first
user should not be confused about what happened
This is happening due to user's cached filter stuff at clint being out of sync with server
This is happening due to user's cached filter stuff at client being out of sync with server
maybe the local cache should be checked on login first and cleaned up?
or I guess on demand is best since it's not eating up bandwidth

View File

@@ -925,8 +925,15 @@ async function fetchListView(vm) {
}
let res = await window.$gz.api.get("data-list-view/" + vm.listViewId);
if (res.error) {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);
if (res.error.code && res.error.code == "2010") {
//list not found, probably deleted by another user
//or on another browser and this one still had it as the last used list view
vm.listViewId = 0; //indicate no list view
return;
} else {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);
}
// window.$gz.errorHandler.handleFormError(res.error, vm);
} else {
vm.listView = res.data.listView;