From a1ea788d45d0ef6e4df70495931c08badef20724 Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Thu, 24 Aug 2023 19:53:00 -0300 Subject: [PATCH] Feat: Make edges with data work on Examples too --- src/frontend/src/utils/reactflowUtils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 590e925f6..e11d84471 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -289,6 +289,11 @@ export function updateEdgesHandleIds({ } edge.sourceHandle = scapedJSONStringfy(newSource!); edge.targetHandle = scapedJSONStringfy(newTarget!); + const newData = { + sourceHandle: scapeJSONParse(edge.sourceHandle), + targetHandle: scapeJSONParse(edge.targetHandle), + }; + edge.data = newData; }); return newEdges; }