summaryrefslogtreecommitdiffstats
path: root/hyperkitty/static
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/static')
-rw-r--r--hyperkitty/static/hyperkitty/js/hyperkitty-common.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/hyperkitty/static/hyperkitty/js/hyperkitty-common.js b/hyperkitty/static/hyperkitty/js/hyperkitty-common.js
index ac164ea..464cff5 100644
--- a/hyperkitty/static/hyperkitty/js/hyperkitty-common.js
+++ b/hyperkitty/static/hyperkitty/js/hyperkitty-common.js
@@ -130,6 +130,8 @@ function chart(elem_id, data, default_props) {
default_props = {};
}
+ if (!data) { return; }
+
var props = {width: 250, height: 50};
$.extend(props, default_props);
var margin = {top: 0, right: 0, bottom: 0, left: 0},