Browse Source

refactor: use the user inputted name

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
02d41ebec8
  1. 4
      packages/nocodb/src/helpers/columnHelpers.ts

4
packages/nocodb/src/helpers/columnHelpers.ts

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

Loading…
Cancel
Save