Skip to content

Commit

Permalink
Pageviews: Fix summation of Watchers across multiple pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Feb 22, 2022
1 parent fee1754 commit 42518f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion javascripts/pageviews/pageviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class PageViews extends mix(Pv).with(ChartHelpers) {
num_users: this.entityInfo.totals ? this.entityInfo.totals.num_users : null,
length: datasets.reduce((a, b) => a + b.length, 0),
protection: $.i18n('num-protections', this.formatNumber(numProtections), numProtections),
watchers: datasets.reduce((a, b) => a + b.watchers || 0, 0)
watchers: datasets.reduce((a, b) => a + (b.watchers || 0), 0)
};
this.$outputList.append(this.config.templates.tableRow(this, totals, true));

Expand Down
Loading

0 comments on commit 42518f9

Please sign in to comment.