Skip to content

Commit

Permalink
Fix issue where duplicate expanded community entries could appear (close
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed May 23, 2019
1 parent 9d5783d commit ca19d50
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/ui/success.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,22 @@ export function uiSuccess(context) {


function showMore(selection) {
var more = selection
var more = selection.selectAll('.community-more')
.data([0]);

var moreEnter = more.enter()
.append('div')
.attr('class', 'community-more');

if (d.extendedDescription) {
more
moreEnter
.append('div')
.attr('class', 'community-extended-description')
.html(t('community.' + d.id + '.extendedDescription', replacements));
}

if (d.languageCodes && d.languageCodes.length) {
more
moreEnter
.append('div')
.attr('class', 'community-languages')
.text(t('success.languages', { languages: d.languageCodes.join(', ') }));
Expand Down

0 comments on commit ca19d50

Please sign in to comment.