Skip to content

Commit

Permalink
Fix error spam of icon only buttons part2
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Mar 14, 2022
1 parent 526bef2 commit f2b9dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export default {
methods: {
getText() {
return this.$slots?.default[0]?.text ? this.$slots.default[0].text.trim() : null
return this.$slots?.default && this.$slots?.default[0]?.text ? this.$slots.default[0].text.trim() : null
},
/**
Expand Down

0 comments on commit f2b9dbd

Please sign in to comment.