Skip to content

Commit b633d0d

Browse files
committed
fix: issue with missing lucide icon in native icon pack (#509)
1 parent cf833a1 commit b633d0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/icon-pack-manager.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,13 @@ export const loadIcon = async (
410410
(iconPack) => iconPack.name === NATIVE_LUCIDE_ICON_PACK_NAME,
411411
);
412412
const icon = lucideIcons.icons.find((icon) => icon.name === name);
413+
if (!icon) {
414+
logger.warn(
415+
`Icon ${icon} does not exist in the native Lucide icon pack.`,
416+
);
417+
return;
418+
}
419+
413420
preloadedIcons.push(icon);
414421
return;
415422
}

0 commit comments

Comments
 (0)