|
|
@ -40,7 +40,7 @@ export async function createHmAndBtColumn( |
|
|
|
{ |
|
|
|
{ |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
await child.getColumns(), |
|
|
|
await child.getColumns(), |
|
|
|
type === 'bt' && !isLinks ? alias : `${parent.title}`, |
|
|
|
(type === 'bt' && alias) || `${parent.title}`, |
|
|
|
); |
|
|
|
); |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
title, |
|
|
|
title, |
|
|
@ -65,7 +65,7 @@ export async function createHmAndBtColumn( |
|
|
|
{ |
|
|
|
{ |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
await parent.getColumns(), |
|
|
|
await parent.getColumns(), |
|
|
|
type === 'hm' && !isLinks ? alias : `${child.title} List`, |
|
|
|
(type === 'hm' && alias) || `${child.title}`, |
|
|
|
); |
|
|
|
); |
|
|
|
const meta = { |
|
|
|
const meta = { |
|
|
|
plural: columnMeta?.plural || pluralize(child.title), |
|
|
|
plural: columnMeta?.plural || pluralize(child.title), |
|
|
|