diff --git a/lib/src/commands/LayoutTreeCrawler.ts b/lib/src/commands/LayoutTreeCrawler.ts index 0d00c89d85c..9c29d9c9637 100644 --- a/lib/src/commands/LayoutTreeCrawler.ts +++ b/lib/src/commands/LayoutTreeCrawler.ts @@ -87,7 +87,7 @@ export class LayoutTreeCrawler { } _applyButtonsStyle(buttons, style) { - if (buttons) { + if (_.isArray(buttons)) { buttons.forEach((button) => { _.merge(button, style); });