Skip to content

Commit

Permalink
fix(icon): handle situation where the iconSrc is null or undefined (
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse authored and Pooya Parsa committed May 7, 2019
1 parent 9d04794 commit 66be874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 66be874

Please sign in to comment.