Skip to content

Commit 33c0608

Browse files
committed
fix: revert
1 parent 50cdeed commit 33c0608

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/containers/Heatmap/Heatmap.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ export const Heatmap = ({path, database}: HeatmapProps) => {
8888
const {min, max} = getCurrentMetricLimits(currentMetric, tablets);
8989

9090
const preparedTablets = tablets.map((tablet) => {
91-
const value =
92-
currentMetric &&
93-
Number(tablet.metrics?.[currentMetric as keyof typeof tablet.metrics]);
91+
const value = currentMetric && Number(tablet.metrics?.[currentMetric]);
9492
const colorIndex = getColorIndex(value, min, max);
9593
const color = COLORS_RANGE[colorIndex];
9694

0 commit comments

Comments
 (0)