We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50cdeed commit 33c0608Copy full SHA for 33c0608
src/containers/Heatmap/Heatmap.tsx
@@ -88,9 +88,7 @@ export const Heatmap = ({path, database}: HeatmapProps) => {
88
const {min, max} = getCurrentMetricLimits(currentMetric, tablets);
89
90
const preparedTablets = tablets.map((tablet) => {
91
- const value =
92
- currentMetric &&
93
- Number(tablet.metrics?.[currentMetric as keyof typeof tablet.metrics]);
+ const value = currentMetric && Number(tablet.metrics?.[currentMetric]);
94
const colorIndex = getColorIndex(value, min, max);
95
const color = COLORS_RANGE[colorIndex];
96
0 commit comments