Skip to content

Commit

Permalink
Fix icon component for nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
visualjerk committed Nov 28, 2018
1 parent f14d59d commit 8043107
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/system/components/typography/Icon/Icon.vue
Expand Up @@ -44,7 +44,11 @@ export default {
},
computed: {
svgComponent() {
return icons[this.name]
const icon = icons[this.name]
if (!icon) {
return false
}
return icon.render ? icon : icon.default
}
}
}
Expand Down

0 comments on commit 8043107

Please sign in to comment.