Skip to content

Commit

Permalink
Ensure removed nodes are not connected to output
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed May 31, 2023
1 parent 5985bd7 commit 404b092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bonsai.Editor/GraphModel/WorkflowEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ orderby source.Index ascending
// Connect output sources to external targets
var outputConnections = groupOutputs
.Select(edge => edge.Item1)
.Where(xs => xs != null)
.Where(xs => xs != null && groupWorkflow.Contains(xs))
.SelectMany(xs => successors.Select(successor =>
(source: xs, target: successor)));
foreach (var (source, target) in outputConnections)
Expand Down

0 comments on commit 404b092

Please sign in to comment.