Browse Source

fix: typo error

pull/7218/head
Ramesh Mane 11 months ago
parent
commit
9140e6c81b
  1. 4
      packages/nc-gui/utils/dataUtils.ts

4
packages/nc-gui/utils/dataUtils.ts

@ -98,8 +98,8 @@ export const rowDefaultData = (columns: ColumnType[] = []) => {
![UITypes.Rollup, UITypes.Lookup, UITypes.Formula, UITypes.Barcode, UITypes.QrCode].includes(col.uidt) && ![UITypes.Rollup, UITypes.Lookup, UITypes.Formula, UITypes.Barcode, UITypes.QrCode].includes(col.uidt) &&
col?.cdf col?.cdf
) { ) {
const defalutValue = col.cdf const defaultValue = col.cdf
acc[col.title!] = typeof defalutValue === 'string' ? defalutValue.replace(/^'/, '').replace(/'$/, '') : defalutValue acc[col.title!] = typeof defaultValue === 'string' ? defaultValue.replace(/^'/, '').replace(/'$/, '') : defaultValue
} }
return acc return acc
}, {} as Record<string, any>) }, {} as Record<string, any>)

Loading…
Cancel
Save