mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-15 16:02:32 +08:00
dont crash on bad primitive links
This commit is contained in:
parent
0276444f59
commit
2c866c5c52
@ -915,7 +915,7 @@ export class GroupNodeHandler {
|
|||||||
if (innerNode.type === "PrimitiveNode") {
|
if (innerNode.type === "PrimitiveNode") {
|
||||||
innerNode.primitiveValue = newValue;
|
innerNode.primitiveValue = newValue;
|
||||||
const primitiveLinked = this.groupData.primitiveToWidget[old.node.index];
|
const primitiveLinked = this.groupData.primitiveToWidget[old.node.index];
|
||||||
for (const linked of primitiveLinked) {
|
for (const linked of primitiveLinked ?? []) {
|
||||||
const node = this.innerNodes[linked.nodeId];
|
const node = this.innerNodes[linked.nodeId];
|
||||||
const widget = node.widgets.find((w) => w.name === linked.inputName);
|
const widget = node.widgets.find((w) => w.name === linked.inputName);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user