From 0d8655486aa678da6c5d12d55e3935ae2cad10d3 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 29 Mar 2023 10:15:51 +0530 Subject: [PATCH] fix(gui): map correct rollup icon Signed-off-by: Pranav C --- .../components/smartsheet/header/VirtualCellIcon.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts b/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts index 6d75d2d022..0e596d8621 100644 --- a/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts +++ b/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts @@ -52,13 +52,13 @@ const renderIcon = (column: ColumnType, relationColumn?: ColumnType) => { case UITypes.Rollup: switch ((relationColumn?.colOptions as LinkToAnotherRecordType)?.type) { case RelationTypes.MANY_TO_MANY: - return { icon: iconMap, color: 'text-accent' } + return { icon: iconMap.rollup, color: 'text-accent' } case RelationTypes.HAS_MANY: - return { icon: iconMap, color: 'text-yellow-500' } + return { icon: iconMap.rollup, color: 'text-yellow-500' } case RelationTypes.BELONGS_TO: - return { icon: iconMap, color: 'text-sky-500' } + return { icon: iconMap.rollup, color: 'text-sky-500' } } - return { icon: iconMap, color: 'text-grey' } + return { icon: iconMap.rollup, color: 'text-grey' } case UITypes.Count: return { icon: CountIcon, color: 'text-grey' } }