selectionParentRoom setting mechanism fix

This commit is contained in:
mushka 2022-10-10 17:21:43 +03:00
parent be3bb23144
commit 946c4a8408

View File

@ -166,7 +166,7 @@ const InfoPanelBodyContent = ({
// Updating selectionParentRoom after selectFolder change
// if it is located in another room
useEffect(async () => {
if (isGallery || isAccounts) return;
if (!isRooms) return;
const currentFolderRoomId = selectedFolder.pathParts[1];
const storeRoomId = selectionParentRoom?.id;