Strip default value from gallery

This commit is contained in:
space-nuko
2023-05-25 17:12:20 -05:00
parent d70f430383
commit a47a032968
3 changed files with 13 additions and 118 deletions

View File

@@ -355,6 +355,6 @@ export default abstract class ComfyWidgetNode<T = any> extends ComfyGraphNode {
override stripUserState(o: SerializedLGraphNode) {
super.stripUserState(o);
(o as any).comfyValue = this.properties.defaultValue;
(o as any).comfyValue = LiteGraph.cloneObject(this.properties.defaultValue);
}
}