mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user