Skip to content

Commit

Permalink
empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
mtanda committed Jul 11, 2016
1 parent 6144fac commit 8800fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ angular.module('grafana.directives').directive('grafanaHeatmapEpoch', function($
}

function shouldAbortRender() {
if (!data) {
if (!data || _.isEmpty(data)) {
return true;
}

Expand Down

0 comments on commit 8800fc3

Please sign in to comment.