Skip to content

Commit

Permalink
Refactoring as per review comments
Browse files Browse the repository at this point in the history
Improved conditional statement
  • Loading branch information
ved-kashyap-samsung authored May 11, 2023
1 parent 9f30967 commit c5a6c8c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ export function ColumnOption({

return (
<StyleOverrides>
{showType && (
{showType && type !== undefined && (
<Tooltip
id="metric-type-tooltip"
title={columnTypeTooltipText}
placement="bottomRight"
align={{ offset: [8, -2] }}
>
<span>{type !== undefined && <ColumnTypeLabel type={type} />}</span>
<span>
<ColumnTypeLabel type={type} />
</span>
</Tooltip>
)}
<Tooltip id="metric-name-tooltip" title={tooltipText}>
Expand Down

0 comments on commit c5a6c8c

Please sign in to comment.