Skip to content

Commit

Permalink
#2166 Nodes with looped links crash the UI in the test harness (#2167)
Browse files Browse the repository at this point in the history
Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn authored Sep 23, 2024
1 parent 3863c6b commit fc3199f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,8 @@ export default class ObjectModel {
retval = true;
} else {
for (const link of pipeline.getLinks()) {
if (link.srcNodeId === startNodeId) {
if (link.srcNodeId === startNodeId &&
link.srcNodeId !== link.trgNodeId) { // Ignore self-referencing links
const newRetval = this.findNodesInSubGraph(link.trgNodeId, endNodeId, selection, pipelineId);
if (newRetval !== true) {
selection.pop();
Expand Down

0 comments on commit fc3199f

Please sign in to comment.