cleanup res.error overly complex
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user