Skip to content

Commit

Permalink
fix: issue with missing lucide icon in native icon pack (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Jun 30, 2024
1 parent cf833a1 commit b633d0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/icon-pack-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,13 @@ export const loadIcon = async (
(iconPack) => iconPack.name === NATIVE_LUCIDE_ICON_PACK_NAME,
);
const icon = lucideIcons.icons.find((icon) => icon.name === name);
if (!icon) {
logger.warn(
`Icon ${icon} does not exist in the native Lucide icon pack.`,
);
return;
}

preloadedIcons.push(icon);
return;
}
Expand Down

0 comments on commit b633d0d

Please sign in to comment.