Selaa lähdekoodia

callable vars are not good

Khaleel Al-Adhami 4 kuukautta sitten
vanhempi
säilyke
c6e2368c95
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()