fix potential crash

This commit is contained in:
pythongosssss 2023-11-17 17:32:25 +00:00
parent 34fd915eec
commit 07adf250cb

View File

@ -1708,7 +1708,7 @@ export class ComfyApp {
}
if (link) {
if (parent.updateLink) {
if (parent?.updateLink) {
link = parent.updateLink(link);
}
inputs[node.inputs[i].name] = [String(link.origin_id), parseInt(link.origin_slot)];