Skip to content

Commit

Permalink
fix(build): fix aliases map in related icons generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Karsa committed Mar 11, 2024
1 parent 8a9136b commit bab4eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/writeIconRelatedIcons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const arrayMatches = (a, b) => {
const nameParts = (icon) =>
[
icon.name,
...(icon.aliases.map((alias) => (typeof alias === 'string' ? alias : alias.name)) ?? []),
...(icon.aliases?.map((alias) => (typeof alias === 'string' ? alias : alias.name)) ?? []),
]
.join('-')
.split('-')
Expand Down

0 comments on commit bab4eb1

Please sign in to comment.