diff --git a/src/components/common/BarChart.tsx b/src/components/common/BarChart.tsx index b4dde32e7..e7cc956c4 100644 --- a/src/components/common/BarChart.tsx +++ b/src/components/common/BarChart.tsx @@ -41,13 +41,6 @@ const useStyles = makeStyles((theme: Theme) => ({ cursor: 'pointer', width: '80%', marginLeft: '10%' - }, - circle: { - borderRadius: '50%', - backgroundColor: 'purple', - height: 6, - marginTop: 3, - width: 6 } })); @@ -90,14 +83,12 @@ const BarChartItem: React.FC = ({ <>
-
); @@ -177,8 +168,10 @@ export const BarChart: React.FC = ({ onClick={handleClickItem(item)} key={`bar-chart-item-${index}`} isSelected={ - item.metadata && - chartIds.includes(item.metadata.name) + chartIds.length === 0 + ? true + : item.metadata && + chartIds.includes(item.metadata.name) } /> ))}