This commit is contained in:
@@ -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!";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user