Skip to content

Commit ed1f1af

Browse files
committed
Potential test case fix
1 parent 0affb3c commit ed1f1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/litegraph/src/LGraphNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ export class LGraphNode
850850
.values()
851851
.filter((w) => w.serialize !== false)
852852
widgetsWithValue.forEach((widget, i) => {
853-
if (widget) {
853+
if (widget && i < info.widgets_values!.length) {
854854
widget.value = info.widgets_values![i]
855855
}
856856
})

0 commit comments

Comments
 (0)