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 16, 2022
1 parent 24a446a commit 74cb09d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Bonsai.Editor/Bonsai.Editor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<UseWindowsForms>true</UseWindowsForms>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<TargetFramework>net472</TargetFramework>
<VersionPrefix>2.7.1</VersionPrefix>
<VersionPrefix>2.7.2</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="**\*.svg" />
Expand Down
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 74cb09d

Please sign in to comment.