fix checkboxes

This commit is contained in:
Alex Turchyn
2023-07-22 20:00:28 +03:00
parent f94ef3afdc
commit a2cf8fc5b5
6 changed files with 22 additions and 20 deletions
+2 -2
View File
@@ -314,7 +314,7 @@ export default {
const field = {
name: '',
uuid: v4(),
required: true,
required: type !== 'checkbox',
type,
submitter_uuid: this.selectedSubmitter.uuid,
areas: [area]
@@ -333,7 +333,7 @@ export default {
type: this.dragFieldType,
uuid: v4(),
submitter_uuid: this.selectedSubmitter.uuid,
required: true
required: this.dragFieldType !== 'checkbox'
}
if (['select', 'multiple', 'radio'].includes(this.dragFieldType)) {