Skip to content

Commit

Permalink
Merge pull request #66 from concord-consortium/187399412-fix-reset-zoom
Browse files Browse the repository at this point in the history
fix: Reset zoom when resetting model [PT-187399412]
  • Loading branch information
dougmartin authored Sep 27, 2024
2 parents 464968c + 001e287 commit 369987e
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 369987e

Please sign in to comment.