From 9a605cc6c6688bb45f913c000c7ea62684141607 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 24 May 2021 17:13:51 +0530 Subject: [PATCH] Remove unnecessary check Signed-off-by: RMidhunSuresh --- src/domain/session/SessionViewModel.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index 6570cd54..77c63d6c 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -260,9 +260,6 @@ export class SessionViewModel extends ViewModel { _toggleRoomInformationPanel() { this._roomInfoViewModel = this.disposeTracked(this._roomInfoViewModel); const room = this._roomFromNavigation(); - if (!room) { - return; - } const enable = !!this.navigation.path.get("details"); if (enable) { this._roomInfoViewModel = this.track(new RoomInfoViewModel(this.childOptions({ room })));