diff --git a/src/frontend/src/stores/flowStore.ts b/src/frontend/src/stores/flowStore.ts index 26e069dab..473c615b1 100644 --- a/src/frontend/src/stores/flowStore.ts +++ b/src/frontend/src/stores/flowStore.ts @@ -261,11 +261,7 @@ const useFlowStore = create((set, get) => ({ id, data: cloneDeep(edge.data), style: { stroke: "#555" }, - className: - targetHandleObject.type === "Text" - ? "stroke-gray-800 " - : "stroke-gray-900 ", - animated: targetHandleObject.type === "Text", + className: "stroke-gray-900 ", selected: false, }, newEdges.map((edge) => ({ ...edge, selected: false })) @@ -329,9 +325,6 @@ const useFlowStore = create((set, get) => ({ .type === "Text" ? "stroke-foreground " : "stroke-foreground ") + " stroke-connection", - animated: - (scapeJSONParse(connection.targetHandle!) as targetHandleType) - .type === "Text", markerEnd: isIoIn || isIoOut ? { ...commonMarkerProps } : undefined, }, oldEdges diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 9dfcdb5ee..7f0e549aa 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -324,11 +324,7 @@ export function updateEdges(edges: Edge[]) { const targetHandleObject: targetHandleType = scapeJSONParse( edge.targetHandle! ); - edge.className = - (targetHandleObject.type === "Text" - ? "stroke-gray-800 " - : "stroke-gray-900 ") + " stroke-connection"; - edge.animated = targetHandleObject.type === "Text"; + edge.className = "stroke-gray-900 stroke-connection"; }); }