From 3395a932aaa98ef34e7f0898d88d483de6ea51e4 Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Thu, 24 Aug 2023 17:44:43 -0300 Subject: [PATCH] Feat: add data to edges with source and handle info --- .gitattributes | 3 ++- .../src/pages/FlowPage/components/PageComponent/index.tsx | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index b69d73e97..0db364a12 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,4 +17,5 @@ # Denote all files that are truly binary and should not be modified. *.png binary -*.jpg binary \ No newline at end of file +*.jpg binary +*.mp4 binary \ No newline at end of file diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index d2d979b4a..30e3865d7 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -203,6 +203,10 @@ export default function Page({ addEdge( { ...params, + data: { + targetHandle: scapeJSONParse(params.targetHandle!), + sourceHandle: scapeJSONParse(params.sourceHandle!), + }, style: { stroke: "#555" }, className: ((scapeJSONParse(params.targetHandle!) as targetHandleType)