From 65bc045fe76f3e293426559a69a81099c5532bf8 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Wed, 9 Nov 2022 14:15:55 +0300 Subject: [PATCH] Fix TypeError: Cannot read properties of null (reading '1') --- packages/common/store/InfoPanelStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/common/store/InfoPanelStore.js b/packages/common/store/InfoPanelStore.js index 5268f9a45a..abf6905010 100644 --- a/packages/common/store/InfoPanelStore.js +++ b/packages/common/store/InfoPanelStore.js @@ -136,7 +136,9 @@ class InfoPanelStore { reloadSelectionParentRoom = async () => { if (!this.getIsRooms) return; - const currentFolderRoomId = this.selectedFolderStore.pathParts[1]; + const currentFolderRoomId = + this.selectedFolderStore.pathParts && + this.selectedFolderStore.pathParts[1]; const prevRoomId = this.selectionParentRoom?.id; if (!currentFolderRoomId || currentFolderRoomId === prevRoomId) return;