Fixes issue with restoring serialised graphs with widgets set to 0.

This commit is contained in:
Steven Harding
2023-10-05 09:03:07 +11:00
parent 44e49acaaa
commit e3cde7f66e

View File

@@ -2530,7 +2530,7 @@
var w = this.widgets[i];
if(!w)
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 ] ) );
}
if (info.widgets_values) {