mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Fix issue where duplicate expanded community entries could appear (close #6422)
This commit is contained in:
@@ -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(', ') }));
|
||||
|
||||
Reference in New Issue
Block a user