|
|
@ -622,7 +622,7 @@ export class TablesService { |
|
|
|
source_id: source.id, |
|
|
|
source_id: source.id, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
mapDefaultDisplayValue(param.table.columns); |
|
|
|
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, { |
|
|
@ -633,7 +633,6 @@ export class TablesService { |
|
|
|
...c, |
|
|
|
...c, |
|
|
|
uidt: c.uidt || getColumnUiType(source, colMetaFromDb || c), |
|
|
|
uidt: c.uidt || getColumnUiType(source, colMetaFromDb || c), |
|
|
|
...(colMetaFromDb || {}), |
|
|
|
...(colMetaFromDb || {}), |
|
|
|
dtxp: colMetaFromDb?.dtxp ?? c.dtxp, |
|
|
|
|
|
|
|
title: c.title || getColumnNameAlias(c.cn, source), |
|
|
|
title: c.title || getColumnNameAlias(c.cn, source), |
|
|
|
column_name: colMetaFromDb?.cn || c.cn || c.column_name, |
|
|
|
column_name: colMetaFromDb?.cn || c.cn || c.column_name, |
|
|
|
order: i + 1, |
|
|
|
order: i + 1, |
|
|
|