2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-22 14:48:24 +00:00

chore: add await loading collection from fs

This commit is contained in:
Joaquín Sánchez Jiménez 2022-02-26 16:58:48 +01:00
parent bb285192a2
commit bbe56e3199

View File

@ -59,7 +59,7 @@ async function loadNodeBuiltinIcon(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const { loadCollectionFromFS } = await importFsModule();
const iconSet = loadCollectionFromFS(collection, options?.autoInstall);
const iconSet = await loadCollectionFromFS(collection, options?.autoInstall);
if (iconSet) {
// possible icon names
const ids = [