Skip to content

Commit

Permalink
Don't try to render chart if no valid stats are available
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rabold committed Feb 24, 2018
1 parent 4fae5c4 commit a2ba8ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parsers/cloudwatch/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ class AwsCloudWatchChart {
}
}

if (!fromTime || !toTime) {
// Cannot render a chart without timeframe
return "";
}

const diff = (toTime - fromTime);
const timeSlots = [];
let prevTime = false;
Expand Down

0 comments on commit a2ba8ac

Please sign in to comment.