Browse Source

fix(gui-v2): set required to boolean

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
75650e54ef
  1. 1
      packages/nc-gui-v2/components/smartsheet/Form.vue

1
packages/nc-gui-v2/components/smartsheet/Form.vue

@ -201,6 +201,7 @@ function setFormData() {
localColumns.value = col localColumns.value = col
.filter((f: Record<string, any>) => f.show && f.uidt !== UITypes.Rollup && f.uidt !== UITypes.Lookup) .filter((f: Record<string, any>) => f.show && f.uidt !== UITypes.Rollup && f.uidt !== UITypes.Lookup)
.sort((a: Record<string, any>, b: Record<string, any>) => a.order - b.order) .sort((a: Record<string, any>, b: Record<string, any>) => a.order - b.order)
.map((c: Record<string, any>) => ({ ...c, required: !!(c.required || 0) }))
systemFieldsIds.value = getSystemColumns(col).map((c: Record<string, any>) => c.fk_column_id) systemFieldsIds.value = getSystemColumns(col).map((c: Record<string, any>) => c.fk_column_id)

Loading…
Cancel
Save