Fixed str handles being able to connect to everything
This commit is contained in:
parent
bd243d9f80
commit
4ec6ee8fd5
1 changed files with 1 additions and 2 deletions
|
|
@ -100,8 +100,7 @@ export function isValidConnection(
|
||||||
(t) =>
|
(t) =>
|
||||||
targetHandleObject.inputTypes?.some((n) => n === t) ||
|
targetHandleObject.inputTypes?.some((n) => n === t) ||
|
||||||
t === targetHandleObject.type
|
t === targetHandleObject.type
|
||||||
) ||
|
)
|
||||||
targetHandleObject.type === "str"
|
|
||||||
) {
|
) {
|
||||||
let targetNode = reactFlowInstance?.getNode(target!)?.data?.node;
|
let targetNode = reactFlowInstance?.getNode(target!)?.data?.node;
|
||||||
if (!targetNode) {
|
if (!targetNode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue