From 439910f6caa5821cfb9b7cb9c9e0f8030b7687a7 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sun, 23 May 2021 20:24:39 +0530 Subject: [PATCH] Handle case when path.get() may be null Signed-off-by: RMidhunSuresh --- src/domain/session/SessionViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index 260a98e6..b32355ef 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -251,7 +251,7 @@ export class SessionViewModel extends ViewModel { } _toggleRoomInformationPanel() { - const roomId = this.navigation.path.get("room").value; + const roomId = this.navigation.path.get("room")?.value; const room = this._sessionContainer.session.rooms.get(roomId); const enable = !!this.navigation.path.get("details"); if (!room) {