diff --git a/src/node/utils/toolbar.js b/src/node/utils/toolbar.js index a76e5b200..3e435d28b 100644 --- a/src/node/utils/toolbar.js +++ b/src/node/utils/toolbar.js @@ -59,7 +59,7 @@ ButtonsGroup.prototype.addButton = function (button) { ButtonsGroup.prototype.render = function () { if (this.buttons && this.buttons.length === 1) { this.buttons[0].grouping = ''; - } else { + } else if (this.buttons && this.buttons.length > 1) { _.first(this.buttons).grouping = 'grouped-left'; _.last(this.buttons).grouping = 'grouped-right'; _.each(this.buttons.slice(1, -1), (btn) => {