From f6b36519f110a82be682679c39c4eb73c9c3dabf Mon Sep 17 00:00:00 2001 From: David Luzar Date: Fri, 20 Mar 2020 21:46:09 +0100 Subject: [PATCH] don't pass deleted elements to UI (#1029) --- src/components/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 4f6676f5..3f1961bc 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -810,7 +810,9 @@ export class App extends React.Component { 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}