forked from mystiq/hydrogen-web
Remove unnecessary check
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
c3333f5fe8
commit
9a605cc6c6
1 changed files with 0 additions and 3 deletions
|
@ -260,9 +260,6 @@ export class SessionViewModel extends ViewModel {
|
||||||
_toggleRoomInformationPanel() {
|
_toggleRoomInformationPanel() {
|
||||||
this._roomInfoViewModel = this.disposeTracked(this._roomInfoViewModel);
|
this._roomInfoViewModel = this.disposeTracked(this._roomInfoViewModel);
|
||||||
const room = this._roomFromNavigation();
|
const room = this._roomFromNavigation();
|
||||||
if (!room) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const enable = !!this.navigation.path.get("details");
|
const enable = !!this.navigation.path.get("details");
|
||||||
if (enable) {
|
if (enable) {
|
||||||
this._roomInfoViewModel = this.track(new RoomInfoViewModel(this.childOptions({ room })));
|
this._roomInfoViewModel = this.track(new RoomInfoViewModel(this.childOptions({ room })));
|
||||||
|
|
Loading…
Reference in a new issue