Handle case when path.get() may be null
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
96959a3c4c
commit
439910f6ca
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue