Skip to content

Commit

Permalink
fix: Reset zoom when resetting model [PT-187399412]
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmartin committed Sep 26, 2024
1 parent 129b41f commit 001e287
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ export const App = () => {
setSequenceGroups([]);
setFastSimulation(defaultFastSimulation);
setGraph(initialGraph ? {...initialGraph} : {nodes: [], edges: []});
setFitViewAt(Date.now());
}
}, [initialGraph, setGraph]);

Expand Down

0 comments on commit 001e287

Please sign in to comment.