Skip to content

Commit 0ac18ea

Browse files
fix(Graph): fix broken tab for column tables (#1004)
1 parent d1fd058 commit 0ac18ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/containers/Heatmap/Histogram/Histogram.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const Histogram = (props) => {
6363
});
6464
let maxCount = 0;
6565
tablets.forEach((tablet) => {
66-
const value = currentMetric && Number(tablet.metrics[currentMetric]);
66+
const value = currentMetric && Number(tablet.metrics?.[currentMetric]);
6767
const bucketIndex = Math.floor(value / step);
6868
const nextCountValue = histogramRange[bucketIndex]?.count + 1;
6969

src/containers/Heatmap/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const getCurrentMetricLimits = (metric, tablets) => {
9191
const limitedMetric = LIMITED_METRICS[metric] || {};
9292

9393
tablets.forEach((tablet) => {
94-
limits.add(Number(tablet.metrics[metric]));
94+
limits.add(Number(tablet.metrics?.[metric]));
9595
});
9696

9797
if (Number.isInteger(limitedMetric.min)) {

0 commit comments

Comments
 (0)