Make the workflow's visualizer layout more stable (#9203)
We no longer reset the state of Reactflow when the selected workflow version changes. The viewport is not reset when discarding a draft version but it looks better that way. https://github.com/user-attachments/assets/0df9fa52-c44a-4aea-a504-4765542101fa Fixes https://discord.com/channels/1130383047699738754/1319626151768883300/1319626151768883300
This commit is contained in:
committed by
GitHub
parent
53f0cd7205
commit
d2abd59a51
@ -17,7 +17,6 @@ export const WorkflowDiagramCanvasEditable = ({
|
|||||||
return (
|
return (
|
||||||
<ReactFlowProvider>
|
<ReactFlowProvider>
|
||||||
<WorkflowDiagramCanvasBase
|
<WorkflowDiagramCanvasBase
|
||||||
key={workflowWithCurrentVersion.currentVersion.id}
|
|
||||||
diagram={diagram}
|
diagram={diagram}
|
||||||
status={workflowWithCurrentVersion.currentVersion.status}
|
status={workflowWithCurrentVersion.currentVersion.status}
|
||||||
nodeTypes={{
|
nodeTypes={{
|
||||||
|
|||||||
@ -16,7 +16,6 @@ export const WorkflowDiagramCanvasReadonly = ({
|
|||||||
return (
|
return (
|
||||||
<ReactFlowProvider>
|
<ReactFlowProvider>
|
||||||
<WorkflowDiagramCanvasBase
|
<WorkflowDiagramCanvasBase
|
||||||
key={workflowVersion.id}
|
|
||||||
diagram={diagram}
|
diagram={diagram}
|
||||||
status={workflowVersion.status}
|
status={workflowVersion.status}
|
||||||
nodeTypes={{
|
nodeTypes={{
|
||||||
|
|||||||
Reference in New Issue
Block a user