浏览代码

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)