Browse Source

refactor: Additional informations added on Airtable Import feature that tells which column in which table was Duplicate column alias. Issue Refs: #8798 (#9741)

pull/9748/head
Ylli 4 weeks ago committed by GitHub
parent
commit
2a9f9587ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/nocodb/src/services/columns.service.ts

3
packages/nocodb/src/services/columns.service.ts

@ -352,7 +352,8 @@ export class ColumnsService {
exclude_id: param.columnId, exclude_id: param.columnId,
})) }))
) { ) {
NcError.badRequest('Duplicate column alias'); // This error will be thrown if there are more than one column linking to the same table. You have to delete one of them
NcError.badRequest(`Duplicate column alias for table ${table.title} and column is ${param.column.title}. Please change the name of this column and retry.`);
} }
let colBody = { ...param.column } as Column & { let colBody = { ...param.column } as Column & {

Loading…
Cancel
Save