From b894446b3729fe22a6ca39ed3333404ee2cadf94 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 12 Jul 2019 19:28:32 +0000 Subject: [PATCH] --- ayanova/src/components/custom-fields-control.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ayanova/src/components/custom-fields-control.vue b/ayanova/src/components/custom-fields-control.vue index ba82bdf6..bb24ac83 100644 --- a/ayanova/src/components/custom-fields-control.vue +++ b/ayanova/src/components/custom-fields-control.vue @@ -42,10 +42,17 @@ export default { //check pre-requisites exist just in case if (this.$gzdevmode()) { if (!this.$_) { - throw "tag-picker: $_ (lodash) is required and missing"; + throw "custom-fields-control: $_ (lodash) is required and missing"; } if (!this.$gzlocale) { - throw "tag-picker: $gzlocale is required and missing"; + throw "custom-fields-control: $gzlocale is required and missing"; + } + if (!this.formKey) { + throw "custom-fields-control: formKey property is required and missing"; + } + + if (!this.$store.state.formCustomTemplate[this.formKey]) { + throw "custom-fields-control: formCustomTemplate not in the Store!"; } } }