mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
don't pass deleted elements to UI (#1029)
This commit is contained in:
parent
71c31d9b8d
commit
f6b36519f1
1 changed files with 3 additions and 1 deletions
|
@ -810,7 +810,9 @@ export class App extends React.Component<any, AppState> {
|
|||
appState={this.state}
|
||||
setAppState={this.setAppState}
|
||||
actionManager={this.actionManager}
|
||||
elements={globalSceneState.getAllElements()}
|
||||
elements={globalSceneState.getAllElements().filter(element => {
|
||||
return !element.isDeleted;
|
||||
})}
|
||||
setElements={this.setElements}
|
||||
language={getLanguage()}
|
||||
onRoomCreate={this.createRoom}
|
||||
|
|
Loading…
Add table
Reference in a new issue