Merge branch 'zustand/io/migration' of https://github.com/logspace-ai/langflow into zustand/io/migration

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-01-31 17:56:10 -03:00
commit b05ac9e84d

View file

@ -306,6 +306,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
.nodes.find(
(node) => node.id === connection.source || node.id === connection.target
);
const sourceType = findNode?.data?.type;
let isIoIn = false;
let isIoOut = false;
@ -333,7 +334,6 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
(scapeJSONParse(connection.targetHandle!) as targetHandleType)
.type === "Text",
markerEnd: isIoIn || isIoOut ? { ...commonMarkerProps } : undefined,
markerStart: isIoIn || isIoOut ? { ...commonMarkerProps } : undefined,
},
oldEdges
);