Browse Source

fix: if column not found return

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5816/head
Pranav C 1 year ago
parent
commit
ad9eb9ff98
  1. 5
      packages/nocodb/src/models/Column.ts

5
packages/nocodb/src/models/Column.ts

@ -601,6 +601,11 @@ export default class Column<T = any> implements ColumnType {
static async delete(id, ncMeta = Noco.ncMeta) {
const col = await this.get({ colId: id }, ncMeta);
// if column is not found, return
if (!col) {
return;
}
// todo: or instead of delete reset related foreign key value to null and handle in BaseModel
// get qr code columns and delete

Loading…
Cancel
Save