diff --git a/packages/nocodb/src/services/tables.service.ts b/packages/nocodb/src/services/tables.service.ts index a0c63fc7fb..f77c577a48 100644 --- a/packages/nocodb/src/services/tables.service.ts +++ b/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,