Dominique CLAUSE 2 лет назад
Родитель
Сommit
a2092e090f
1 измененных файлов с 1 добавлено и 2 удалено
  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);
             }