Skip to content

Commit 66be874

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/icon/index.js

Lines changed: 1 addition & 1 deletion
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)