From d43a380aefb001333149cf7351a9f127b8d5cb30 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 7 Dec 2024 07:36:59 +0000 Subject: [PATCH] fix(nocodb): attachment column description update issue nocodb/nocodb/issues/9912 --- packages/nocodb/src/models/Column.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/models/Column.ts b/packages/nocodb/src/models/Column.ts index befddf7971..ceed6fc472 100644 --- a/packages/nocodb/src/models/Column.ts +++ b/packages/nocodb/src/models/Column.ts @@ -1357,9 +1357,13 @@ export default class Column 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