mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 14:54:12 +00:00
Fix reroute to wildcard & multi-typed slots (#769)
Use the same type check the rest of the connection process uses.
This commit is contained in:
@@ -128,8 +128,8 @@ app.registerExtension({
|
||||
: null
|
||||
if (
|
||||
inputType &&
|
||||
inputType !== '*' &&
|
||||
nodeOutType !== inputType
|
||||
// @ts-expect-error Will self-resolve when LiteGraph types are generated
|
||||
!LiteGraph.isValidConnection(inputType, nodeOutType)
|
||||
) {
|
||||
// The output doesnt match our input so disconnect it
|
||||
node.disconnectInput(link.target_slot)
|
||||
|
||||
Reference in New Issue
Block a user