mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
Fix subgraphs linked to each other corrupt execution
This commit is contained in:
@@ -134,7 +134,10 @@ export const graphToPrompt = async (
|
||||
link = parent.getInputLink(link.origin_slot)
|
||||
if (!link) break
|
||||
|
||||
parent = parent.getInputNode(link.target_slot)
|
||||
parent = parent.isSubgraphNode()
|
||||
? parent.getInputNodeFromSubgraph(link.target_slot)
|
||||
: parent.getInputNode(link.target_slot)
|
||||
|
||||
if (!parent) break
|
||||
} else if (!parent.inputs) {
|
||||
// Maintains existing behaviour if parent.getInputLink is overriden
|
||||
|
||||
Reference in New Issue
Block a user