Преглед изворни кода

Update list high-level API (#543)

Thomas Brandého пре 2 година
родитељ
комит
b4fb0df9ea
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pynecone/components/datadisplay/list.py

+ 1 - 1
pynecone/components/datadisplay/list.py

@@ -34,7 +34,7 @@ class List(ChakraComponent):
         if len(children) == 0:
             children = []
             for item in items or []:
-                children.append(ListItem.create(*item))
+                children.append(ListItem.create(item))
         return super().create(*children, **props)