Skip to content

Commit

Permalink
Merge pull request #2547 from nextcloud/bugfix/2540/fix-error-spam-part2
Browse files Browse the repository at this point in the history
Fix error spam of icon only buttons part2
  • Loading branch information
nickvergessen authored Mar 14, 2022
2 parents 526bef2 + f2b9dbd commit a33d61e
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 a33d61e

Please sign in to comment.