mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 13:10:24 +00:00
Pin reroute on link release searchbox (#469)
* Correctly handle wildcard type * Add test * nit * Pin reroute on link release search * Connect wildcard * nit
This commit is contained in:
@@ -55,7 +55,8 @@ export class ConnectingLinkImpl implements ConnectingLink {
|
||||
const newNodeSlots =
|
||||
this.releaseSlotType === 'output' ? newNode.outputs : newNode.inputs
|
||||
const newNodeSlot = newNodeSlots.findIndex(
|
||||
(slot: INodeSlot) => slot.type === this.type
|
||||
(slot: INodeSlot) =>
|
||||
slot.type === this.type || slot.type === '*' || this.type === '*'
|
||||
)
|
||||
|
||||
if (newNodeSlot === -1) {
|
||||
|
||||
Reference in New Issue
Block a user