mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Handle case when path.get() may be null
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
96959a3c4c
commit
439910f6ca
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user