Browse Source

fix: default primary value mapping correction

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

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

@ -547,6 +547,8 @@ export class TablesService {
const uniqueColumnNameCount = {}; const uniqueColumnNameCount = {};
mapDefaultDisplayValue(param.table.columns);
for (const column of param.table.columns) { for (const column of param.table.columns) {
if ( if (
!isVirtualCol(column) || !isVirtualCol(column) ||
@ -622,8 +624,6 @@ export class TablesService {
source_id: source.id, source_id: source.id,
}); });
mapDefaultDisplayValue(tableCreatePayLoad.columns);
// todo: type correction // todo: type correction
const result = await Model.insert(base.id, source.id, { const result = await Model.insert(base.id, source.id, {
...tableCreatePayLoad, ...tableCreatePayLoad,

Loading…
Cancel
Save