This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user