Fixed str handles being able to connect to everything

This commit is contained in:
Lucas Oliveira 2023-11-29 17:01:36 -03:00
commit 4ec6ee8fd5

View file

@ -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) {