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:
anovazzi1 2023-11-29 17:44:34 -03:00
commit a2d278b52d

View file

@ -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(() => {