added icon for flip

This commit is contained in:
ari committed 2022-06-09 17:13:34 -04:00
1 parent 942867d646
commit a3e9d19c45
6 files changed
+49 -9

No files matched your search

+10
View File
@@ -140,6 +140,16 @@ export const DAGAutomationFlow: FC<DAGAutomationFlowProps> = ({
namer,
makeSequenceUpdater(sequence, onSequenceUpdate, setModalState),
);
// this fixes some strange edge drawing issue
flowData.edges = flowData.edges.map(e => ({
...e,
"source": `${e.source}-${dims.flipped}`,
"target": `${e.target}-${dims.flipped}`,
}))
flowData.nodes = flowData.nodes.map(n => ({
...n,
id: `${n.id}-${dims.flipped}`
}))
// render
return <>
<Modal open={!!modalState}>