diff --git a/package.json b/package.json index 27d2a174d..5f8d40cfa 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "memory-fs": "^0.4.1", "morgan": "^1.8.2", "react-chartjs-2": "^4.0.0", - "react-flow-renderer": "10.0.0-next.30", + "react-flow-renderer": "10.1.1", "react-ga4": "^1.4.1", "react-helmet": "^5.1.3", "react-responsive": "^4.1.0", diff --git a/src/components/flytegraph/ReactFlow/ReactFlowWrapper.tsx b/src/components/flytegraph/ReactFlow/ReactFlowWrapper.tsx index 20f5f633f..28e408c6e 100644 --- a/src/components/flytegraph/ReactFlow/ReactFlowWrapper.tsx +++ b/src/components/flytegraph/ReactFlow/ReactFlowWrapper.tsx @@ -105,8 +105,8 @@ export const ReactFlowWrapper: React.FC = ({ nodeTypes={CustomNodeTypes} onNodesChange={onNodesChange} style={reactFlowStyle} - onPaneReady={onLoad} - fitViewOnInit + onInit={onLoad} + fitView >