فهرست منبع

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:
         if len(children) == 0:
             children = []
             children = []
             for item in items or []:
             for item in items or []:
-                children.append(ListItem.create(*item))
+                children.append(ListItem.create(item))
         return super().create(*children, **props)
         return super().create(*children, **props)