From adc48d68e3a6ae433acc3a3aa526672555ca8cbc Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 27 Feb 2023 13:14:43 +0530 Subject: [PATCH] refactor: show proper field icon Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/header/CellIcon.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/header/CellIcon.ts b/packages/nc-gui/components/smartsheet/header/CellIcon.ts index d4be4534f8..15da258b7c 100644 --- a/packages/nc-gui/components/smartsheet/header/CellIcon.ts +++ b/packages/nc-gui/components/smartsheet/header/CellIcon.ts @@ -60,6 +60,8 @@ import DurationIcon from '~icons/mdi/timer-outline' const renderIcon = (column: ColumnType, abstractType: any) => { if (isPrimaryKey(column)) { return KeyIcon + } else if (isSpecificDBType(column)) { + return SpecificDBTypeIcon } else if (isJSON(column)) { return JSONIcon } else if (isDate(column, abstractType)) { @@ -102,8 +104,6 @@ const renderIcon = (column: ColumnType, abstractType: any) => { return NumericIcon } else if (isString(column, abstractType)) { return StringIcon - } else if (isSpecificDBType(column)) { - return SpecificDBTypeIcon } else { return GenericIcon }