diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index c70a7172..055c9344 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -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 diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 4dd13a54..8b94ffae 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -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;