fix: skip default value setting for attachment

This commit is contained in:
Pranav C
2025-06-04 16:56:36 +00:00
parent a59f41761b
commit 41b6e141c4

View File

@@ -150,7 +150,9 @@ export const rowDefaultData = (columns: ColumnType[] = []) => {
if (
!isSystemColumn(col) &&
!isVirtualCol(col) &&
![UITypes.Rollup, UITypes.Lookup, UITypes.Formula, UITypes.Barcode, UITypes.QrCode].includes(col.uidt) &&
![UITypes.Attachment, UITypes.Rollup, UITypes.Lookup, UITypes.Formula, UITypes.Barcode, UITypes.QrCode].includes(
col.uidt,
) &&
isValidValue(col?.cdf) &&
!/^\w+\(\)|CURRENT_TIMESTAMP$/.test(col.cdf)
) {