would this fix it? no clue

This commit is contained in:
Khaleel Al-Adhami 2024-11-15 16:16:13 -08:00
parent 7f1dc7c841
commit 92b1232806

View File

@ -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.