use hash for field options

This commit is contained in:
Pete Matsyburka
2023-11-13 01:46:28 +02:00
parent a25022532e
commit 1066131143
9 changed files with 88 additions and 28 deletions
+2 -1
View File
@@ -140,6 +140,7 @@ import FieldSubmitter from './field_submitter'
import FieldType from './field_type'
import Field from './field'
import { IconX } from '@tabler/icons-vue'
import { v4 } from 'uuid'
export default {
name: 'FieldArea',
@@ -303,7 +304,7 @@ export default {
}
if (['select', 'multiple', 'radio'].includes(this.field.type)) {
this.field.options ||= ['']
this.field.options ||= [{ value: '', uuid: v4() }]
}
(this.field.areas || []).forEach((area) => {