Explorar el Código

merging buttons fix

yogevbd hace 6 años
padre
commit
74077bbc55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      lib/src/commands/LayoutTreeCrawler.ts

+ 1
- 1
lib/src/commands/LayoutTreeCrawler.ts Ver fichero

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