Skip to content

Commit a2ba8ac

Browse files
author
Andre Rabold
committed
Don't try to render chart if no valid stats are available
1 parent 4fae5c4 commit a2ba8ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/parsers/cloudwatch/chart.js

+5
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ class AwsCloudWatchChart {
317317
}
318318
}
319319

320+
if (!fromTime || !toTime) {
321+
// Cannot render a chart without timeframe
322+
return "";
323+
}
324+
320325
const diff = (toTime - fromTime);
321326
const timeSlots = [];
322327
let prevTime = false;

0 commit comments

Comments
 (0)