From 8659416af20ca7350896460080b32d512808dd9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=E2=84=93e=20Hensel?= Date: Sat, 22 Feb 2025 19:57:18 +1100 Subject: [PATCH] Fix duplicate values in the `source` field on the changeset page (#10799) --- modules/ui/changeset_editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ui/changeset_editor.js b/modules/ui/changeset_editor.js index 5b078d6ea..ec489bf30 100644 --- a/modules/ui/changeset_editor.js +++ b/modules/ui/changeset_editor.js @@ -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' }));