Browse Source

fix(nocodb): attachment column description update issue nocodb/nocodb/issues/9912

pull/9958/head
Ramesh Mane 5 days ago
parent
commit
d43a380aef
  1. 8
      packages/nocodb/src/models/Column.ts

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

@ -1357,9 +1357,13 @@ export default class Column<T = any> implements ColumnType {
);
}
if (oldCol.uidt === UITypes.Attachment && oldCol.uidt !== column.uidt) {
if (
column.uidt &&
oldCol.uidt === UITypes.Attachment &&
oldCol.uidt !== column.uidt
) {
// Set Gallery & Kanban view `fk_cover_image_col_id` value to null
await Column.deleteCoverImageColumnId(context, column.id, ncMeta);
await Column.deleteCoverImageColumnId(context, colId, ncMeta);
}
// set meta

Loading…
Cancel
Save