Browse Source

fix: update column issue

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/6513/head
mertmit 1 year ago committed by sreehari jayaraj
parent
commit
45b78c64ee
  1. 6
      packages/nocodb/src/models/Column.ts

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

@ -1079,7 +1079,11 @@ export default class Column<T = any> implements ColumnType {
await Column.delete(barcodeCol.fk_column_id, ncMeta); await Column.delete(barcodeCol.fk_column_id, ncMeta);
} }
} }
if (column.column_order.order && column.column_order.view_id) { if (
column.column_order &&
column.column_order.order &&
column.column_order.view_id
) {
const viewColumn = ( const viewColumn = (
await View.getColumns(column.column_order.view_id) await View.getColumns(column.column_order.view_id)
).find((col) => col.fk_column_id === column.id); ).find((col) => col.fk_column_id === column.id);

Loading…
Cancel
Save