Skip to content

Commit

Permalink
Fix upgrade when ungrouping included workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Nov 15, 2022
1 parent 24a446a commit 7bbd446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bonsai.Editor/GraphModel/WorkflowEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1642,8 +1642,8 @@ private void UngroupOrReplaceGraphNode(GraphNode node)
var path = includeBuilder.Path;
if (workflow != null && !string.IsNullOrEmpty(path))
{
UpgradeHelper.TryUpgradeWorkflow(workflow, path, out workflow);
groupBuilder = new GroupWorkflowBuilder(workflow);
UpgradeHelper.TryUpgradeWorkflow(workflow.FromInspectableGraph(), path, out workflow);
groupBuilder = new GroupWorkflowBuilder(workflow.ToInspectableGraph());
}
else groupBuilder = new GroupWorkflowBuilder();
groupBuilder.Name = includeBuilder.Name;
Expand Down

0 comments on commit 7bbd446

Please sign in to comment.