diff --git a/src/views/feature_type/Feature_type_edit.vue b/src/views/feature_type/Feature_type_edit.vue index af4f1bb3af32c801c6e2525cfcb350b4725dda71..e3ccfb670d45e981eff5795891acf54a13d70cb1 100644 --- a/src/views/feature_type/Feature_type_edit.vue +++ b/src/views/feature_type/Feature_type_edit.vue @@ -346,11 +346,12 @@ export default { }, checkCustomForms() { - for (const customForm of this.$refs.customForms) { - if (customForm.checkCustomForm() === false) { - return false; + if (this.$refs.customForms) + for (const customForm of this.$refs.customForms) { + if (customForm.checkCustomForm() === false) { + return false; + } } - } return true; //* fallback if all customForms returned true },