Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
fix(user-metrics): JavaScript error when a user-metrics does not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaimiel committed Jan 24, 2018
1 parent 1011b66 commit eb8e58e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3 class="title-desc">

render: function (data) {
this.processAlerts(data);
if (data) {
if (data && data.metrics) {
var total = 0;
if(data.metrics.versions) {
var max = data.metrics.versions.reduce(function (accum, version) {
Expand Down

0 comments on commit eb8e58e

Please sign in to comment.