We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af05001 + d7a190e commit c3c10ddCopy full SHA for c3c10dd
packages/studio-importor/src/app/graph-canvas/useInteractive.ts
@@ -171,9 +171,11 @@ const useInteractive: any = () => {
171
172
const onReactFlowInit = reactFlowInstance => {
173
if (reactFlowInstance) {
174
- const allNodes = reactFlowInstance.toObject().nodes;
175
- const bbox = getNodesBounds(allNodes);
176
- fitBounds(bbox, { duration: 600 });
+ setTimeout(()=>{
+ const allNodes = reactFlowInstance.toObject().nodes;
+ const bbox = getNodesBounds(allNodes);
177
+ fitBounds(bbox, { duration: 600 });
178
+ },300)
179
}
180
};
181
0 commit comments