add a defensive guard before giving up
This commit is contained in:
parent
4ed9b8ff7c
commit
cac082503b
@ -56,7 +56,7 @@ class Foreach(Component):
|
||||
"""
|
||||
from reflex.vars import ArrayVar, ObjectVar, StringVar
|
||||
|
||||
iterable = LiteralVar.create(iterable)
|
||||
iterable = LiteralVar.create(iterable).guess_type()
|
||||
|
||||
if iterable._var_type == Any:
|
||||
raise ForeachVarError(
|
||||
|
Loading…
Reference in New Issue
Block a user