From 001e2873906a95a6ca511b91795ac13577c852b5 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Thu, 26 Sep 2024 09:49:45 -0400 Subject: [PATCH] fix: Reset zoom when resetting model [PT-187399412] --- src/components/app.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/app.tsx b/src/components/app.tsx index c08383d..19379cc 100644 --- a/src/components/app.tsx +++ b/src/components/app.tsx @@ -504,6 +504,7 @@ export const App = () => { setSequenceGroups([]); setFastSimulation(defaultFastSimulation); setGraph(initialGraph ? {...initialGraph} : {nodes: [], edges: []}); + setFitViewAt(Date.now()); } }, [initialGraph, setGraph]);