throw "string" -> throw new Error("string"
This commit is contained in:
@@ -478,14 +478,18 @@ export default {
|
||||
//check pre-requisites exist just in case
|
||||
if (this.$ay.dev) {
|
||||
if (!window.$gz._) {
|
||||
throw "custom-fields-control: $gz._ (lodash) is required and missing";
|
||||
throw new Error(
|
||||
"custom-fields-control: $gz._ (lodash) is required and missing"
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.$ay.dev) {
|
||||
if (!this.formKey) {
|
||||
throw "custom-fields-control: formKey property is required and missing";
|
||||
throw new Error(
|
||||
"custom-fields-control: formKey property is required and missing"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user