don't pass deleted elements to UI (#1029)

This commit is contained in:
David Luzar
2020-03-20 21:46:09 +01:00
committed by GitHub
parent 71c31d9b8d
commit f6b36519f1

View File

@ -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}