This commit is contained in:
2020-06-19 22:57:58 +00:00
parent 01490c574a
commit f79fed7154
2 changed files with 65 additions and 72 deletions

View File

@@ -754,11 +754,11 @@ function initNavPanel() {
}
async function getUserOptions() {
let res = await window.$gz.api.get(
"user-option/" + window.$gz.store.state.userId
);
// eslint-disable-next-line
try {
let res = await window.$gz.api.get(
"user-option/" + window.$gz.store.state.userId
);
if (res.error) {
//In a form this would trigger a bunch of validation or error display code but for here and now:
//convert error to human readable string for display and popup a notification to user