first vaccinated commit!!

This commit is contained in:
2021-05-18 22:47:14 +00:00
parent f489e5b82d
commit 7e4fa0d3ab

View File

@@ -508,9 +508,7 @@ export default {
//handle errors //handle errors
if (this.saveResult.errors != null) { if (this.saveResult.errors != null) {
//# FAIL ROUTE //# FAIL ROUTE
//console.log("WTF?", formErrorFromSaveResult(this));
const processedErrors = formErrorFromSaveResult(this); const processedErrors = formErrorFromSaveResult(this);
//console.log("ProcessedErrors is", processedErrors);
vm.formState.serverError = processedErrors; //this is the bit that triggers field and row errors to display as they pickup from this setting vm.formState.serverError = processedErrors; //this is the bit that triggers field and row errors to display as they pickup from this setting
window.$gz.form.setErrorBoxErrors(vm); //set generalerror errors in error box at top, not related to form field errors which happen alternatively based on formState.serverError which is confusing window.$gz.form.setErrorBoxErrors(vm); //set generalerror errors in error box at top, not related to form field errors which happen alternatively based on formState.serverError which is confusing
} else { } else {