mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 07:44:11 +00:00
Prune DOM widgets outside of current subgraph
This commit is contained in:
@@ -718,7 +718,7 @@ export class ComfyApp {
|
||||
}
|
||||
|
||||
#addAfterConfigureHandler() {
|
||||
const { canvas, graph } = this
|
||||
const { graph } = this
|
||||
const { onConfigure } = graph
|
||||
graph.onConfigure = function (...args) {
|
||||
fixLinkInputSlots(this)
|
||||
@@ -735,8 +735,10 @@ export class ComfyApp {
|
||||
node.onAfterGraphConfigured?.()
|
||||
}
|
||||
|
||||
const nodes = canvas.subgraph?.nodes ?? graph.nodes
|
||||
pruneWidgets(nodes)
|
||||
graph.canvasAction((c) => {
|
||||
const nodes = c.subgraph?.nodes ?? graph.nodes
|
||||
pruneWidgets(nodes)
|
||||
})
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user