diff --git a/ayanova/src/api/errorhandler.js b/ayanova/src/api/errorhandler.js index e379250d..4cb81725 100644 --- a/ayanova/src/api/errorhandler.js +++ b/ayanova/src/api/errorhandler.js @@ -37,7 +37,7 @@ function dealWithError(msg, vm) { //If a form instance was provided (vue instance) //then put the error into it if (vm) { - if (vm.ay.dev()) { + 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";