Browse Source

fix(gui-v2): take form column required into consideration as well

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

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

@ -170,7 +170,7 @@ async function addAllColumns() {
async function removeAllColumns() { async function removeAllColumns() {
for (const col of (formColumnData as Record<string, any>)?.value) { for (const col of (formColumnData as Record<string, any>)?.value) {
if (isDbRequired(col)) { if (isDbRequired(col) || col.required) {
continue continue
} }
col.show = false col.show = false

Loading…
Cancel
Save