fix: set default value as empty array

This commit is contained in:
Shariq Ansari 2025-05-23 20:26:43 +05:30
parent 0f0b012a44
commit b95a17a4e0

View File

@ -64,7 +64,10 @@ const emit = defineEmits(['change'])
const { getFields } = getMeta(props.doctype)
const values = defineModel()
const values = defineModel({
type: Array,
default: () => [],
})
const valuesRef = ref([])
const error = ref(null)