Fix duplicate values in the source field on the changeset page (#10799)

This commit is contained in:
Kyℓe Hensel
2025-02-22 19:57:18 +11:00
committed by GitHub
parent f2615f8a70
commit 8659416af2
+1
View File
@@ -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' }));