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) &&
col?.cdf
) {
const defalutValue = col.cdf
acc[col.title!] = typeof defalutValue === 'string' ? defalutValue.replace(/^'/, '').replace(/'$/, '') : defalutValue
const defaultValue = col.cdf
acc[col.title!] = typeof defaultValue === 'string' ? defaultValue.replace(/^'/, '').replace(/'$/, '') : defaultValue
}
return acc
}, {} as Record<string, any>)

Loading…
Cancel
Save