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 3c72ceb2c..10cd17e62 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]);