diff --git a/src/domain/session/RoomGridViewModel.js b/src/domain/session/RoomGridViewModel.js index 8610f197..c2608680 100644 --- a/src/domain/session/RoomGridViewModel.js +++ b/src/domain/session/RoomGridViewModel.js @@ -84,7 +84,7 @@ export class RoomGridViewModel extends ViewModel { } const vmo = this._viewModelsObservables[index]; if (vmo) { - const detailsShown = !!this.navigation.path.get("details"); + const detailsShown = !!this.navigation.path.get("details")?.value; this.navigation.push("room", vmo.id); if (detailsShown) { this.navigation.push("details", true); diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index 2c0d65bf..decc0b86 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -260,7 +260,7 @@ export class SessionViewModel extends ViewModel { _toggleRoomInformationPanel() { this._roomInfoViewModel = this.disposeTracked(this._roomInfoViewModel); const room = this._roomFromNavigation(); - const enable = !!this.navigation.path.get("details"); + const enable = !!this.navigation.path.get("details")?.value; if (enable) { this._roomInfoViewModel = this.track(new RoomInfoViewModel(this.childOptions({ room }))); } diff --git a/src/domain/session/leftpanel/LeftPanelViewModel.js b/src/domain/session/leftpanel/LeftPanelViewModel.js index 9f7b85ab..061c640c 100644 --- a/src/domain/session/leftpanel/LeftPanelViewModel.js +++ b/src/domain/session/leftpanel/LeftPanelViewModel.js @@ -94,7 +94,7 @@ export class LeftPanelViewModel extends ViewModel { _pathForDetails(path) { const details = this.navigation.path.get("details"); - return details ? path.with(details) : path; + return details?.value ? path.with(details) : path; } toggleGrid() {