Selaa lähdekoodia

Cleanup ids for slot.

Dominique CLAUSE 2 vuotta sitten
vanhempi
säilyke
a2092e090f
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      nicegui/templates/index.html

+ 1 - 2
nicegui/templates/index.html

@@ -81,8 +81,7 @@
                 props: props
               }));
             }
-            const ids = ('ids' in data) ? data.ids : data;
-            const children = ids.map(id => renderRecursively(elements, id));
+            const children = data.ids.map(id => renderRecursively(elements, id));
             if (name === 'default' && element.text) {
               children.unshift(element.text);
             }