refactor(fitView): use same fitView function for viewport helper and initial prop
This commit is contained in:
@@ -67,7 +67,7 @@ const LayoutFlow = () => {
|
||||
edges={edges}
|
||||
onConnect={onConnect}
|
||||
nodeExtent={nodeExtent}
|
||||
onPaneReady={() => onLayout('TB')}
|
||||
onInit={() => onLayout('TB')}
|
||||
onNodesChange={onNodesChange}
|
||||
onEdgesChange={onEdgesChange}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user