Skip to content

Commit

Permalink
fix(limel-icon): undefined icons are not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Gustafsson authored and adrianschmidt committed Sep 10, 2019
1 parent e59e88f commit f399ffa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export class Icon {

@Watch('name')
protected async loadIcon(name: string) {
if (name === undefined || name === '') {
return;
}
const svgData = await this.loadSvg(name);
this.renderSvg(svgData);
}
Expand Down

0 comments on commit f399ffa

Please sign in to comment.