This commit is contained in:
@@ -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
|
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
|
test by setting filter from one browser then delete it from another and refresh first
|
||||||
user should not be confused about what happened
|
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?
|
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
|
or I guess on demand is best since it's not eating up bandwidth
|
||||||
|
|
||||||
|
|||||||
@@ -925,8 +925,15 @@ async function fetchListView(vm) {
|
|||||||
}
|
}
|
||||||
let res = await window.$gz.api.get("data-list-view/" + vm.listViewId);
|
let res = await window.$gz.api.get("data-list-view/" + vm.listViewId);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
if (res.error.code && res.error.code == "2010") {
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
//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);
|
// window.$gz.errorHandler.handleFormError(res.error, vm);
|
||||||
} else {
|
} else {
|
||||||
vm.listView = res.data.listView;
|
vm.listView = res.data.listView;
|
||||||
|
|||||||
Reference in New Issue
Block a user