fixed selected folder path parts error

This commit is contained in:
mushka 2022-10-10 18:38:52 +03:00
parent 415c620574
commit edb3f894f6

View File

@ -168,7 +168,8 @@ const InfoPanelBodyContent = ({
useEffect(async () => {
if (!isRooms) return;
const currentFolderRoomId = selectedFolder.pathParts[1];
const currentFolderRoomId =
selectedFolder?.pathParts && selectedFolder.pathParts[1];
const storeRoomId = selectionParentRoom?.id;
if (!currentFolderRoomId) return;