From 7f9ac3f1fe84bb10127db4929856f54f52442f5a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 25 Nov 2015 14:31:27 -0500 Subject: [PATCH] Fixing bug where the labels would revert back to hours --- public/src/admin/general/dashboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.js index d4a0fae102..e4ed52d39c 100644 --- a/public/src/admin/general/dashboard.js +++ b/public/src/admin/general/dashboard.js @@ -301,9 +301,11 @@ define('admin/general/dashboard', ['semver'], function(semver) { return; } + units = units || currentGraph; + socket.emit('admin.analytics.get', { graph: 'traffic', - units: units || currentGraph + units: units }, function (err, data) { if (JSON.stringify(graphData.traffic) === JSON.stringify(data)) { return;