From 946c4a8408c4a44f43b2727621e0fb521d4f2e24 Mon Sep 17 00:00:00 2001 From: mushka Date: Mon, 10 Oct 2022 17:21:43 +0300 Subject: [PATCH] selectionParentRoom setting mechanism fix --- packages/client/src/pages/Home/InfoPanel/Body/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/Home/InfoPanel/Body/index.js b/packages/client/src/pages/Home/InfoPanel/Body/index.js index 1509ab7861..a31c0d9648 100644 --- a/packages/client/src/pages/Home/InfoPanel/Body/index.js +++ b/packages/client/src/pages/Home/InfoPanel/Body/index.js @@ -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;