瀏覽代碼

merging buttons fix

yogevbd 7 年之前
父節點
當前提交
74077bbc55
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/src/commands/LayoutTreeCrawler.ts

+ 1
- 1
lib/src/commands/LayoutTreeCrawler.ts 查看文件

87
   }
87
   }
88
 
88
 
89
   _applyButtonsStyle(buttons, style) {
89
   _applyButtonsStyle(buttons, style) {
90
-    if (buttons) {
90
+    if (_.isArray(buttons)) {
91
       buttons.forEach((button) => {
91
       buttons.forEach((button) => {
92
         _.merge(button, style);
92
         _.merge(button, style);
93
       });
93
       });