Remove unnecessary check

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-05-24 17:13:51 +05:30
parent c3333f5fe8
commit 9a605cc6c6

View File

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