Skip to content

Commit

Permalink
fix activity group display when using truncate flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bretdavidson committed Jul 9, 2014
1 parent 65ea666 commit 11ec724
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions analysis/reports/time-series/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,11 @@
o.name = o.title;

if (trunc) {
o.count = response[o.id] ? response[o.id].toFixed(2) : null;
if (o.type === "activityGroup") {
o.count = null;
} else {
o.count = response[o.id] ? response[o.id].toFixed(2) : null;
}
} else {
if (o.type === "activityGroup") {
o.count = null;
Expand Down Expand Up @@ -872,7 +876,7 @@
},
/**
* Method to build a CSV string from an object
* @param {object} counts
* @param {object} counts
* @param {string} label Label for name field
* @param {boolean} indent Should names be indented?
* @return {string}
Expand All @@ -886,7 +890,7 @@
object[label] = indent ? self.addCSVIndent(o) : o.name;
object.Count = o.count;
object.Percent = o.percent;

return object;
}));
},
Expand Down

0 comments on commit 11ec724

Please sign in to comment.