Browse Source

fix: default primary value mapping

pull/7403/head
Pranav C 11 months ago
parent
commit
ef6548741d
  1. 3
      packages/nocodb/src/services/tables.service.ts

3
packages/nocodb/src/services/tables.service.ts

@ -622,7 +622,7 @@ export class TablesService {
source_id: source.id,
});
mapDefaultDisplayValue(param.table.columns);
mapDefaultDisplayValue(tableCreatePayLoad.columns);
// todo: type correction
const result = await Model.insert(base.id, source.id, {
@ -633,7 +633,6 @@ export class TablesService {
...c,
uidt: c.uidt || getColumnUiType(source, colMetaFromDb || c),
...(colMetaFromDb || {}),
dtxp: colMetaFromDb?.dtxp ?? c.dtxp,
title: c.title || getColumnNameAlias(c.cn, source),
column_name: colMetaFromDb?.cn || c.cn || c.column_name,
order: i + 1,

Loading…
Cancel
Save