Browse Source

Cleanup ids for slot.

Dominique CLAUSE 2 years ago
parent
commit
a2092e090f
1 changed files with 1 additions and 2 deletions
  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);
             }