Skip to content

Commit 66be874

Browse files
tmorehousePooya Parsa
authored and
Pooya Parsa
committedMay 7, 2019
fix(icon): handle situation where the iconSrc is null or undefined (#187)
1 parent 9d04794 commit 66be874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/icon/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function findIcon (options) {
6868
options.iconSrc,
6969
path.resolve(this.options.srcDir, this.options.dir.static, options.iconFileName),
7070
path.resolve(this.options.srcDir, this.options.dir.assets, options.iconFileName)
71-
]
71+
].filter(p => p)
7272

7373
for (const iconSrc of iconSearchPath) {
7474
if (await fs.exists(iconSrc)) {

0 commit comments

Comments
 (0)
Please sign in to comment.