fixing arrow direction

This commit is contained in:
cristhianzl 2024-01-31 17:54:54 -03:00
commit e855f24448

View file

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