From ecdc8ac347918f2eae882e27811ed64eb5f79752 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 6 Oct 2022 16:11:34 +0530 Subject: [PATCH] fix(gui): update required condition Signed-off-by: Pranav C --- packages/nc-gui/utils/columnUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/utils/columnUtils.ts b/packages/nc-gui/utils/columnUtils.ts index 7d1f027f05..64e9206ae5 100644 --- a/packages/nc-gui/utils/columnUtils.ts +++ b/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) => { return isColumnRequired(col) && (row[col.title!] === undefined || row[col.title!] === null)