Skip to content

Commit

Permalink
revert this line, avoid unneeded computation
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-bartscher committed Aug 12, 2024
1 parent 2135379 commit d452687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ async def _populate_parent_states(self, target_state_cls: Type[BaseState]):

# Fetch all missing parent states and link them up to the common ancestor.
parent_states_tuple = self._get_parent_states()
root_state = self._get_root_state()
root_state = parent_states_tuple[-1][1]
parent_states_by_name = dict(parent_states_tuple)
parent_state = parent_states_by_name[common_ancestor_name]
for parent_state_name in missing_parent_states:
Expand Down

0 comments on commit d452687

Please sign in to comment.