|
|
|
@ -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, |
|
|
|
|