Skip to content

Commit

Permalink
something broke during the merge I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor committed Dec 12, 2024
1 parent 1da65e6 commit daa1f0c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions reflex/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -2210,21 +2210,17 @@ def _get_deps_from_event_trigger(event: EventChain | EventSpec | Var) -> set[str
"""
events: list = [event]
deps = set()

if isinstance(event, EventChain):
events.extend(event.events)

for ev in events:
if isinstance(ev, EventSpec):
for arg in ev.args:
deps.union(
{
str(dep)
for a in arg
if a._var_data is not None
for dep in a._var_data.deps
if a._var_data.deps is not None
}
)
for a in arg:
var_datas = VarData.merge(a._get_all_var_data())
if var_datas and var_datas.deps is not None:
deps |= {str(dep) for dep in var_datas.deps}
return deps

@classmethod
Expand Down

0 comments on commit daa1f0c

Please sign in to comment.