mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
fix: skip PromotedWidgetSlot when setting promoted flag in subgraph-opened handler
PromotedWidgetSlot overrides promoted as a getter-only property, causing a TypeError when the subgraph-opened handler tried to set it. Amp-Thread-ID: https://ampcode.com/threads/T-019c5585-480f-7523-96a7-f624a6689c1e Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -29,6 +29,7 @@ export function registerPromotedWidgetSlots(canvas: LGraphCanvas) {
|
||||
const proxyWidgets = parseProxyWidgets(fromNode.properties.proxyWidgets)
|
||||
for (const node of subgraph.nodes) {
|
||||
for (const widget of node.widgets ?? []) {
|
||||
if (widget instanceof PromotedWidgetSlot) continue
|
||||
widget.promoted = proxyWidgets.some(
|
||||
([n, w]) => node.id == n && widget.name == w
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user