Virtual whiteboard for sketching hand-drawn like diagrams
fix(app.tsx): show correct state of Nerd stats in context menu when nerd stats dialog closed (#2874)
Aakansha Doshi6e9df2bae72b
diff --git a/src/components/App.tsx b/src/components/App.tsxindex 0d400927b4..33949c418f 100644--- a/src/components/App.tsx+++ b/src/components/App.tsx@@ -1160,9 +1160,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {if (!this.state.showStats) {trackEvent("dialog", "stats");}- this.setState({- showStats: !this.state.showStats,- });+ this.actionManager.executeAction(actionToggleStats);};setScrollToCenter = (remoteElements: readonly ExcalidrawElement[]) => {