diff --git a/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue b/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue index 45592910c6..910d66d55d 100644 --- a/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue +++ b/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue @@ -143,15 +143,17 @@ export default { let param = {}; Object.assign(param, this.form); param.workspaceId = getCurrentWorkspaceId(); - if (['select','multipleSelect','radio','checkbox'].indexOf(param.type) > -1 && param.options.length < 1) { - this.$warning(this.$t('custom_field.option_check')); - return; - } - for (const item of param.options) { - if (!item.text || !item.value) { - this.$warning(this.$t('custom_field.option_value_check')); + if (['select','multipleSelect','radio','checkbox'].indexOf(param.type) > -1) { + if (param.options.length < 1) { + this.$warning(this.$t('custom_field.option_check')); return; } + for (const item of param.options) { + if (!item.text || !item.value) { + this.$warning(this.$t('custom_field.option_value_check')); + return; + } + } } param.options = JSON.stringify(this.form.options); this.result = this.$post(this.url, param, (response) => {