浏览代码

callable vars are not good

Khaleel Al-Adhami 3 月之前
父节点
当前提交
c6e2368c95
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reflex/components/core/foreach.py

+ 1 - 1
reflex/components/core/foreach.py

@@ -33,7 +33,7 @@ def foreach(
     Raises:
         ForeachVarError: If the iterable is of type Any.
     """
-    iterable = LiteralVar.create(iterable)
+    iterable = LiteralVar.create(iterable).guess_type()
     if isinstance(iterable, ObjectVar):
         iterable = iterable.items()