cleanup res.error overly complex
This commit is contained in:
@@ -145,7 +145,7 @@ export default {
|
||||
.get(url)
|
||||
.then(res => {
|
||||
vm.formState.ready = true;
|
||||
if (res.error != undefined) {
|
||||
if (res.error) {
|
||||
vm.formState.serverError = res.error;
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
.upsert(url, vm.obj)
|
||||
.then(res => {
|
||||
vm.formState.loading = false;
|
||||
if (res.error != undefined) {
|
||||
if (res.error) {
|
||||
vm.formState.serverError = res.error;
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user