Explorar o código

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

David Luzar %!s(int64=5) %!d(string=hai) anos
pai
achega
f6b36519f1
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/components/App.tsx

+ 3 - 1
src/components/App.tsx

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