Type serialized NodeSlot (#605)

This commit is contained in:
Chenlei Hu
2025-02-25 19:38:14 -05:00
committed by GitHub
parent dbe016b934
commit 953ae434ea
3 changed files with 14 additions and 5 deletions

View File

@@ -707,8 +707,8 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
if (this.constructor === LGraphNode && this.last_serialization)
return this.last_serialization
if (this.inputs) o.inputs = this.inputs.map(serializeSlot)
if (this.outputs) o.outputs = this.outputs.map(serializeSlot)
if (this.inputs) o.inputs = this.inputs.map(input => serializeSlot(input))
if (this.outputs) o.outputs = this.outputs.map(output => serializeSlot(output))
if (this.title && this.title != this.constructor.title) o.title = this.title