From bfc37b4171abdd742cd7ba6c406fcc1ecf28b871 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 29 Aug 2024 07:59:01 -0400 Subject: [PATCH] Refactor LogLevelCell --- .../features/activity/components/LogLevelCell.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/apps/dashboard/features/activity/components/LogLevelCell.tsx b/src/apps/dashboard/features/activity/components/LogLevelCell.tsx index b884581c4e..4728e7a2bf 100644 --- a/src/apps/dashboard/features/activity/components/LogLevelCell.tsx +++ b/src/apps/dashboard/features/activity/components/LogLevelCell.tsx @@ -4,10 +4,11 @@ import React, { type FC } from 'react'; import { ActivityLogEntryCell } from '../types/ActivityLogEntryCell'; import LogLevelChip from './LogLevelChip'; -const LogLevelCell: FC = ({ cell }) => ( - cell.getValue() ? ( - ()} /> - ) : undefined -); +const LogLevelCell: FC = ({ cell }) => { + const level = cell.getValue(); + return level ? ( + + ) : undefined; +}; export default LogLevelCell;