From 14c373ba9756e4f0836ed0f993bb7973e7996d06 Mon Sep 17 00:00:00 2001 From: olga-union <101579322+olga-union@users.noreply.github.com> Date: Thu, 21 Apr 2022 13:02:16 -0500 Subject: [PATCH] chore: update react-flow-renderer version (#418) Signed-off-by: Olga Nad --- package.json | 2 +- .../flytegraph/ReactFlow/ReactFlowWrapper.tsx | 4 +- yarn.lock | 245 ++---------------- 3 files changed, 21 insertions(+), 230 deletions(-) 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 >