Update the state properly

This commit is contained in:
Panayiotis Lipiridis 2020-12-24 23:15:15 +02:00
parent 49363afac1
commit 922e28a198
2 changed files with 5 additions and 2 deletions

View file

@ -388,6 +388,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
/>
{this.state.showStats && (
<Stats
setAppState={this.setAppState}
appState={this.state}
elements={this.scene.getElements()}
onClose={this.toggleStats}