Browse Source

fix(gui): update required condition

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3953/head
Pranav C 2 years ago
parent
commit
ecdc8ac347
  1. 2
      packages/nc-gui/utils/columnUtils.ts

2
packages/nc-gui/utils/columnUtils.ts

@ -167,7 +167,7 @@ const getUIDTIcon = (uidt: UITypes | string) => {
).icon
}
const isColumnRequired = (col: ColumnType) => col.rqd && (col.cdf === null || col.cdf === undefined ) && !col.ai
const isColumnRequired = (col: ColumnType) => col.rqd && !col.cdf && !col.ai
const isColumnRequiredAndNull = (col: ColumnType, row: Record<string, any>) => {
return isColumnRequired(col) && (row[col.title!] === undefined || row[col.title!] === null)

Loading…
Cancel
Save