From 4ec6ee8fd50d484813cda7a42a8b4f1068193fdf Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 29 Nov 2023 17:01:36 -0300 Subject: [PATCH] Fixed str handles being able to connect to everything --- src/frontend/src/utils/reactflowUtils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index c4f8d621d..6dbb70651 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -100,8 +100,7 @@ export function isValidConnection( (t) => targetHandleObject.inputTypes?.some((n) => n === t) || t === targetHandleObject.type - ) || - targetHandleObject.type === "str" + ) ) { let targetNode = reactFlowInstance?.getNode(target!)?.data?.node; if (!targetNode) {