fixing arrow direction
This commit is contained in:
parent
b42c34cdb1
commit
e855f24448
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue