Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abidlabs committed Jan 10, 2025
1 parent 4bda4b7 commit 377fc8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gradio/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ def iterate_over_children(children_list):
t.__self__ if t.has_trigger else None,
t.event_name, # type: ignore
)
for t in Blocks.get_target_events(
for t in Blocks.get_event_targets(
original_mapping, _targets, trigger
)
]
Expand Down Expand Up @@ -1431,7 +1431,6 @@ def render(self):
# Any event -- e.g. Blocks.load() -- that is triggered by this Blocks
# should now be triggered by the root Blocks instead.
for target in dependency.targets:
print("target", target, "self._id", self._id)
if target[0] == self._id:
target = (Context.root_block._id, target[1])
api_name = dependency.api_name
Expand Down Expand Up @@ -3009,7 +3008,7 @@ def get_api_info(self, all_endpoints: bool = False) -> dict[str, Any] | None:
return api_info

@staticmethod
def get_target_events(
def get_event_targets(
original_mapping: dict[int, Block], _targets: list, trigger: str
) -> list:
target_events = []
Expand Down

0 comments on commit 377fc8b

Please sign in to comment.