Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
echoyang7 committed Dec 5, 2023
1 parent 4b03387 commit e25a35b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lyrebird/mock/dm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,10 +992,10 @@ def get_target_node(self, tree, id):
if not tree:
return
for node in tree:
if node['id'] == id:
return node
if node['id'] not in self.open_nodes:
continue
if node['id'] == id:
return node
result = self.get_target_node(node.get('children', []), id)
if result is not None:
return result
Expand Down

0 comments on commit e25a35b

Please sign in to comment.