Fix Bug 64995 - Rooms. ‘Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id')’

This commit is contained in:
Nikita Gopienko 2023-11-07 12:23:21 +03:00
parent 43eedfe0e6
commit 8df8decc0e

View File

@ -191,7 +191,7 @@ class InfoPanelStore {
const currentFolderRoomId = const currentFolderRoomId =
this.selectedFolderStore.pathParts && this.selectedFolderStore.pathParts &&
this.selectedFolderStore.pathParts[1].id; this.selectedFolderStore.pathParts[1]?.id;
const prevRoomId = this.selectionParentRoom?.id; const prevRoomId = this.selectionParentRoom?.id;
if (!currentFolderRoomId || currentFolderRoomId === prevRoomId) return; if (!currentFolderRoomId || currentFolderRoomId === prevRoomId) return;