FIX: Don't show duplicates in styleguide (#21582)
This commit is contained in:
parent
9953a6edd9
commit
56422ca8b8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue