This commit is contained in:
2020-04-04 19:57:55 +00:00
parent 7d8c3fd695
commit 0a5aaeade1
2 changed files with 2 additions and 3 deletions

View File

@@ -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";

View File

@@ -138,7 +138,6 @@ import ayaNovaVersion from "../api/ayanova-version";
export default {
created() {
let vm = this;
initForm(vm)
.then(() => {
vm.formState.ready = true;
@@ -203,7 +202,7 @@ function generateMenu(vm) {
let menuOptions = {
isMain: false,
icon: "fa-info-circle",
title: this.$ay.t("HelpAboutAyaNova"),
title: vm.$ay.t("HelpAboutAyaNova"),
helpUrl: "form-ay-about",
menuItems: [
{