From 75650e54efb6f8dd71b8331ed11e8ecdd6bd2bdf Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 8 Aug 2022 13:53:50 +0800 Subject: [PATCH] fix(gui-v2): set required to boolean --- packages/nc-gui-v2/components/smartsheet/Form.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nc-gui-v2/components/smartsheet/Form.vue b/packages/nc-gui-v2/components/smartsheet/Form.vue index 97618515ec..5e6a54b6be 100644 --- a/packages/nc-gui-v2/components/smartsheet/Form.vue +++ b/packages/nc-gui-v2/components/smartsheet/Form.vue @@ -201,6 +201,7 @@ function setFormData() { localColumns.value = col .filter((f: Record) => f.show && f.uidt !== UITypes.Rollup && f.uidt !== UITypes.Lookup) .sort((a: Record, b: Record) => a.order - b.order) + .map((c: Record) => ({ ...c, required: !!(c.required || 0) })) systemFieldsIds.value = getSystemColumns(col).map((c: Record) => c.fk_column_id)