Browse Source

fix(gui-v2): remove xor logic in form

pull/3224/head
Wing-Kam Wong 2 years ago
parent
commit
1d7828b470
  1. 6
      packages/nc-gui-v2/components/smartsheet/Form.vue

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

@ -198,12 +198,8 @@ async function addAllColumns() {
$e('a:form-view:add-all') $e('a:form-view:add-all')
} }
function xor(a: any, b: any) {
return !!a !== !!b
}
function shouldSkipColumn(col: Record<string, any>) { function shouldSkipColumn(col: Record<string, any>) {
return xor(isDbRequired(col), col.uidt === UITypes.LinkToAnotherRecord) || !!col.required return isDbRequired(col) || !!col.required
} }
async function removeAllColumns() { async function removeAllColumns() {

Loading…
Cancel
Save