diff --git a/src/subgraph/ExecutableNodeDTO.ts b/src/subgraph/ExecutableNodeDTO.ts index d6a47d238..afa783996 100644 --- a/src/subgraph/ExecutableNodeDTO.ts +++ b/src/subgraph/ExecutableNodeDTO.ts @@ -85,6 +85,10 @@ export class ExecutableNodeDTO implements ExecutableLGraphNode { return this.node.widgets } + get subgraphId() { + return this.subgraphNode?.subgraph.id + } + constructor( /** The actual node that this DTO wraps. */ readonly node: LGraphNode | SubgraphNode,