"examples/runtime/vscode:/vscode.git/clone" did not exist on "b56de8f943db542bbd5636b7520755ab6cf8b21f"
Commit 1ed6cadf authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'master' of https://github.com/omar92/ComfyUI

parents ef595483 ca2ae984
...@@ -30,6 +30,7 @@ app.registerExtension({ ...@@ -30,6 +30,7 @@ app.registerExtension({
} }
// Overwrite the value in the serialized workflow pnginfo // Overwrite the value in the serialized workflow pnginfo
if (workflowNode?.widgets_values)
workflowNode.widgets_values[widgetIndex] = prompt; workflowNode.widgets_values[widgetIndex] = prompt;
return prompt; return prompt;
......
...@@ -55,7 +55,7 @@ app.registerExtension({ ...@@ -55,7 +55,7 @@ app.registerExtension({
} else { } else {
// We've found the end // We've found the end
inputNode = currentNode; inputNode = currentNode;
inputType = node.outputs[link.origin_slot].type; inputType = node.outputs[link.origin_slot]?.type ?? null;
break; break;
} }
} else { } else {
...@@ -87,7 +87,7 @@ app.registerExtension({ ...@@ -87,7 +87,7 @@ app.registerExtension({
updateNodes.push(node); updateNodes.push(node);
} else { } else {
// We've found an output // We've found an output
const nodeOutType = node.inputs[link.target_slot].type; const nodeOutType = node.inputs && node.inputs[link?.target_slot] && node.inputs[link.target_slot].type ? node.inputs[link.target_slot].type : null;
if (inputType && nodeOutType !== inputType) { if (inputType && nodeOutType !== inputType) {
// The output doesnt match our input so disconnect it // The output doesnt match our input so disconnect it
node.disconnectInput(link.target_slot); node.disconnectInput(link.target_slot);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment