Browse Source

fix: get relation column information properly

pull/8367/head
Pranav C 6 months ago
parent
commit
82c97199a1
  1. 2
      packages/nocodb/src/services/tables.service.ts

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

@ -239,7 +239,7 @@ export class TablesService {
);
if (relations.length) {
const relCol = await Column.get(relations[0].fk_column_id);
const relCol = await Column.get({ colId: relations[0].fk_column_id });
const relTable = await Model.get(relCol.fk_model_id);
NcError.tableAssociatedWithLink(table.id, {
customMessage: `This is a many to many table for '${relTable?.title}' (${relTable?.title}), please delete the column before deleting the table.`,

Loading…
Cancel
Save