From bab4eb1c332687255b98e0bb9dff211605912463 Mon Sep 17 00:00:00 2001 From: Karsa Date: Mon, 11 Mar 2024 08:10:09 +0100 Subject: [PATCH] fix(build): fix aliases map in related icons generation --- scripts/writeIconRelatedIcons.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/writeIconRelatedIcons.mjs b/scripts/writeIconRelatedIcons.mjs index d2ddb20d169..f38b84b7b51 100644 --- a/scripts/writeIconRelatedIcons.mjs +++ b/scripts/writeIconRelatedIcons.mjs @@ -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('-')