Skip to content

Commit

Permalink
snap to output
Browse files Browse the repository at this point in the history
  • Loading branch information
tlakshmi authored and tlakshmi committed Nov 21, 2024
1 parent 6b237e5 commit 023ef4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyironflow/reactflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def on_value_change(self, change):
self.wf.remove_child(node_name)

elif command == 'macro':
if self.accordion_widget is not None:
self.accordion_widget.selected_index = 1
custom(self.get_selected_workflow(), node_name, self.root_path)

def update(self):
Expand Down Expand Up @@ -305,9 +307,8 @@ def get_workflow(self):
return wf

def get_selected_workflow(self):
workflow_label = self.wf.label

wf = Workflow(workflow_label)
wf = Workflow("temp_workflow")
dict_nodes = json.loads(self.gui.selected_nodes)
node_labels = []
for dict_node in dict_nodes:
Expand Down

0 comments on commit 023ef4b

Please sign in to comment.