diff --git a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.js b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.js index 55e1eacca94..8b409e0ec82 100644 --- a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.js +++ b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.js @@ -19,7 +19,7 @@ export default Component.extend({ if (symbols.length > 0) { let ids = Array.from(symbols).mapBy("id"); ids.push(...Object.keys(REPLACEMENTS)); - this.set("iconIds", ids.sort()); + this.set("iconIds", [...new Set(ids.sort())]); } else { // Let's try again a short time later if there are no svgs loaded yet discourseLater(this, this.setIconIds, 1500);