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 Jun 13, 2019
1 parent 90d2ecd commit dcabf2c
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 dcabf2c

Please sign in to comment.