forked from mystiq/hydrogen-web
Move variable to scope of conditional
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
7fbcf89539
commit
332fbdda84
1 changed files with 1 additions and 1 deletions
|
@ -258,9 +258,9 @@ export class SessionViewModel extends ViewModel {
|
|||
|
||||
_toggleRoomInformationPanel() {
|
||||
this._roomInfoViewModel = this.disposeTracked(this._roomInfoViewModel);
|
||||
const room = this._roomFromNavigation();
|
||||
const enable = !!this.navigation.path.get("details")?.value;
|
||||
if (enable) {
|
||||
const room = this._roomFromNavigation();
|
||||
this._roomInfoViewModel = this.track(new RoomInfoViewModel(this.childOptions({ room })));
|
||||
}
|
||||
this.emitChange("roomInfoViewModel");
|
||||
|
|
Loading…
Reference in a new issue