From 66be874bbdbb9ba796e0406c63a455455bc4caf2 Mon Sep 17 00:00:00 2001 From: T Morehouse Date: Tue, 7 May 2019 12:44:24 -0300 Subject: [PATCH] fix(icon): handle situation where the iconSrc is `null` or `undefined` (#187) --- packages/icon/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icon/index.js b/packages/icon/index.js index f3af2fef..7f6972e9 100755 --- a/packages/icon/index.js +++ b/packages/icon/index.js @@ -68,7 +68,7 @@ async function findIcon (options) { options.iconSrc, path.resolve(this.options.srcDir, this.options.dir.static, options.iconFileName), path.resolve(this.options.srcDir, this.options.dir.assets, options.iconFileName) - ] + ].filter(p => p) for (const iconSrc of iconSearchPath) { if (await fs.exists(iconSrc)) {