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

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