cleanup res.error overly complex

This commit is contained in:
2020-04-09 22:45:05 +00:00
parent baadc9c3c2
commit ae3baeb954
13 changed files with 32 additions and 34 deletions

View File

@@ -744,7 +744,7 @@ export default function initialize() {
.get("UserOptions/" + window.$gz.store.state.userId)
// eslint-disable-next-line
.then((res) => {
if (res.error != undefined) {
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
let msg = window.$gz.api.apiErrorToHumanString(res.error);
@@ -799,7 +799,7 @@ export default function initialize() {
.get("GlobalBizSettings/client")
// eslint-disable-next-line
.then((res) => {
if (res.error != undefined) {
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
let msg = window.$gz.api.apiErrorToHumanString(res.error);