refactor(PageComponent): remove unnecessary code that sets the viewport in the useEffect hook
The code was removed because it was not being used and was unnecessary for the functionality of the PageComponent.
This commit is contained in:
parent
cfdb3f5220
commit
a2d278b52d
1 changed files with 0 additions and 3 deletions
|
|
@ -167,9 +167,6 @@ export default function Page({
|
|||
useEffect(() => {
|
||||
setNodes(flow?.data?.nodes ?? []);
|
||||
setEdges(flow?.data?.edges ?? []);
|
||||
if (reactFlowInstance) {
|
||||
setViewport(flow?.data?.viewport ?? { x: 1, y: 0, zoom: 0.5 });
|
||||
}
|
||||
}, [flow, reactFlowInstance]);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue