FIX: Don't show duplicates in styleguide (#21582)

This commit is contained in:
Penar Musaraj 2023-05-16 09:27:15 -04:00 committed by GitHub
parent 9953a6edd9
commit 56422ca8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export default Component.extend({
if (symbols.length > 0) { if (symbols.length > 0) {
let ids = Array.from(symbols).mapBy("id"); let ids = Array.from(symbols).mapBy("id");
ids.push(...Object.keys(REPLACEMENTS)); ids.push(...Object.keys(REPLACEMENTS));
this.set("iconIds", ids.sort()); this.set("iconIds", [...new Set(ids.sort())]);
} else { } else {
// Let's try again a short time later if there are no svgs loaded yet // Let's try again a short time later if there are no svgs loaded yet
discourseLater(this, this.setIconIds, 1500); discourseLater(this, this.setIconIds, 1500);