From 832ab8ac9069692163b8c5e60b0b4b68409841cc Mon Sep 17 00:00:00 2001 From: Anton Shepilov Date: Thu, 27 Jul 2023 17:44:12 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bfix=20build=20(#173)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/frontend/src/app/views/client/side-bar/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdrive/frontend/src/app/views/client/side-bar/index.tsx b/tdrive/frontend/src/app/views/client/side-bar/index.tsx index 3c72ceb2..10cd17e6 100644 --- a/tdrive/frontend/src/app/views/client/side-bar/index.tsx +++ b/tdrive/frontend/src/app/views/client/side-bar/index.tsx @@ -43,7 +43,8 @@ export default () => { if ((path || [])[0]?.id === 'user_' + user?.id) folderType = 'personal'; if (inTrash) folderType = 'trash'; if (sharedWithMe) folderType = 'shared'; - const { viewId, itemId } = RouterServices.getStateFromRoute(); + + useEffect(() => { !itemId && viewId && setParentId(viewId); }, [viewId, itemId]);