fixed selected folder path parts error
This commit is contained in:
parent
415c620574
commit
edb3f894f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user