Browse Source

fix(nocodb): incorrect switch break statement in column delete service

pull/7722/head
Ramesh Mane 10 months ago
parent
commit
d2e9df874c
  1. 12
      packages/nocodb/src/services/columns.service.ts

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

@ -2256,12 +2256,10 @@ export class ColumnsService {
break;
}
case UITypes.SingleSelect: {
if (column.uidt === UITypes.SingleSelect) {
if (await KanbanView.IsColumnBeingUsedAsGroupingField(column.id)) {
NcError.badRequest(
`The column '${column.column_name}' is being used in Kanban View. Please delete Kanban View first.`,
);
}
if (await KanbanView.IsColumnBeingUsedAsGroupingField(column.id)) {
NcError.badRequest(
`The column '${column.column_name}' is being used in Kanban View. Please delete Kanban View first.`,
);
}
/* falls through to default */
}
@ -2272,7 +2270,7 @@ export class ColumnsService {
`The column '${column.column_name}' is being used in Calendar View. Please delete Calendar View first.`,
);
}
break;
/* falls through to default */
}
// on deleting created/last modified columns, keep the column in table and delete the column from meta

Loading…
Cancel
Save