Procházet zdrojové kódy

merging buttons fix

yogevbd před 7 roky
rodič
revize
74077bbc55
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      lib/src/commands/LayoutTreeCrawler.ts

+ 1
- 1
lib/src/commands/LayoutTreeCrawler.ts Zobrazit soubor

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
       });