This commit is contained in:
2019-07-12 19:28:32 +00:00
parent 4f766ec156
commit b894446b37

View File

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