mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 01:09:46 +00:00
fixed bug in getOutputNodes
This commit is contained in:
@@ -1679,7 +1679,16 @@ LGraphNode.prototype.getOutputNodes = function(slot)
|
||||
|
||||
var r = [];
|
||||
for(var i = 0; i < output.links.length; i++)
|
||||
r.push( this.graph.getNodeById( output.links[i] ));
|
||||
{
|
||||
var link_id = output.links[i];
|
||||
var link = this.graph.links[ link_id ];
|
||||
if(link)
|
||||
{
|
||||
var target_node = this.graph.getNodeById( link.target_id );
|
||||
if( target_node )
|
||||
r.push( target_node );
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user