diff --git a/pyironflow/reactflow.py b/pyironflow/reactflow.py index 3f16ddc..23f249f 100644 --- a/pyironflow/reactflow.py +++ b/pyironflow/reactflow.py @@ -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): @@ -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: