This commit is contained in:
2020-04-04 19:03:19 +00:00
parent 67071b817a
commit 823b1aa7e5
3 changed files with 16 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ function dealWithError(msg, vm) {
//If a form instance was provided (vue instance)
//then put the error into it
if (vm) {
if (window.$gz.errorHandler.devMode()) {
if (vm.ay.dev()) {
//make sure formState.appError is defined on data
if (!window.$gz._.has(vm, "formState.appError")) {
throw "DEV ERROR errorHandler::dealWithError -> formState.appError seems to be missing from form's vue data object";