fix: use view setter during configure to sync inner node values

Use view.value setter (not direct Map write) when restoring
widgets_values during configure, so the value is stored in the
per-instance map AND synced to the inner node widget for E2E
compatibility.
This commit is contained in:
dante01yoon
2026-04-04 23:37:40 +09:00
parent b5138cb800
commit 073f57c907

View File

@@ -1146,10 +1146,8 @@ export class SubgraphNode extends LGraphNode implements BaseLGraph {
let i = 0
for (const view of views) {
if (i >= this._pendingWidgetsValues.length) break
const key = view.disambiguatingSourceNodeId
? `${view.sourceNodeId}:${view.sourceWidgetName}:${view.disambiguatingSourceNodeId}`
: `${view.sourceNodeId}:${view.sourceWidgetName}`
this._instanceWidgetValues.set(key, this._pendingWidgetsValues[i++])
// Use the setter which stores in instance Map AND syncs to inner node
view.value = this._pendingWidgetsValues[i++] as typeof view.value
}
this._pendingWidgetsValues = undefined
}