Skip to content

Commit

Permalink
Merge pull request #6877 from getkirby/fix/6863-writer-toolbar-open
Browse files Browse the repository at this point in the history
Fix console error when no buttons available
  • Loading branch information
bastianallgeier authored Jan 8, 2025
2 parents 6348e4e + 6867163 commit c5ec448
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions panel/src/components/Forms/Writer/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ export default {
* @public
*/
open() {
if (this.buttons.length === 0) {
return;
}
this.isOpen = true;
if (this.inline) {
Expand Down

0 comments on commit c5ec448

Please sign in to comment.