mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
[backport core/1.33] When moving subgraphInput link, properly disconnect old link (#7255)
Backport of #7229 to `core/1.33` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7255-backport-core-1-33-When-moving-subgraphInput-link-properly-disconnect-old-link-2c46d73d365081cda606e81ec4cbfeec) by [Unito](https://www.unito.io) Co-authored-by: AustinMroz <austin@comfy.org>
This commit is contained in:
@@ -63,6 +63,9 @@ export class ToInputFromIoNodeLink implements RenderLink {
|
||||
|
||||
if (existingLink) {
|
||||
// Moving an existing link
|
||||
const { input, inputNode } = existingLink.resolve(this.network)
|
||||
if (inputNode && input)
|
||||
this.node._disconnectNodeInput(inputNode, input, existingLink)
|
||||
events.dispatch('input-moved', this)
|
||||
} else {
|
||||
// Creating a new link
|
||||
|
||||
Reference in New Issue
Block a user