Skip to content

Commit

Permalink
Pageviews: Fix display of basic info in Totals section
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Jan 29, 2017
1 parent c3b031f commit 26e19a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions javascripts/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ const templates = {
};

if (!multiEntity) {
if (entity.assessment) {
infoHash[basicInfoMsg] = { [$.i18n('class')]: entity.assessment };
}
infoHash[basicInfoMsg] = {
let newHash = {
[$.i18n('protection')]: entity.protection
};
if (entity.assessment) {
newHash[$.i18n('class')] = entity.assessment;
}
Object.assign(infoHash[basicInfoMsg], newHash);
}

let markup = '';
Expand Down
Loading

0 comments on commit 26e19a3

Please sign in to comment.