mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Fixes issue with restoring serialised graphs with widgets set to 0.
This commit is contained in:
@@ -2530,7 +2530,7 @@
|
|||||||
var w = this.widgets[i];
|
var w = this.widgets[i];
|
||||||
if(!w)
|
if(!w)
|
||||||
continue;
|
continue;
|
||||||
if(w.options && w.options.property && this.properties[ w.options.property ])
|
if(w.options && w.options.property && (this.properties[ w.options.property ] != undefined))
|
||||||
w.value = JSON.parse( JSON.stringify( this.properties[ w.options.property ] ) );
|
w.value = JSON.parse( JSON.stringify( this.properties[ w.options.property ] ) );
|
||||||
}
|
}
|
||||||
if (info.widgets_values) {
|
if (info.widgets_values) {
|
||||||
|
|||||||
Reference in New Issue
Block a user