ソースを参照

would this fix it? no clue

Khaleel Al-Adhami 6 ヶ月 前
コミット
92b1232806
1 ファイル変更1 行追加1 行削除
  1. 1 1
      reflex/components/tags/iter_tag.py

+ 1 - 1
reflex/components/tags/iter_tag.py

@@ -131,7 +131,7 @@ class IterTag(Tag):
             component = self.render_fn(arg, index)
 
         # Nested foreach components or cond must be wrapped in fragments.
-        if isinstance(component, (Foreach, Cond)):
+        if isinstance(component, (Foreach, Cond, Var)):
             component = Fragment.create(component)
 
         # Set the component key.