added icon for flip
This commit is contained in:
1 parent
942867d646
commit
a3e9d19c45
6 files changed
+49
-9
No files matched your search
@@ -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}>
|
||||
|
||||
Reference in new issue
Block a user