mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 07:25:15 +02:00
Fix duplicate values in the source field on the changeset page (#10799)
This commit is contained in:
@@ -88,6 +88,7 @@ export function uiChangesetEditor(context) {
|
||||
// based on the values used in recent changesets.
|
||||
const recentSources = changesets
|
||||
.flatMap((changeset) => changeset.tags.source?.split(';'))
|
||||
.filter(value => !sourceField.options.includes(value))
|
||||
.filter(Boolean)
|
||||
.map(title => ({ title, value: title, klass: 'raw-option' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user