diff --git a/web/src/containers/Drive/sideBar.tsx b/web/src/containers/Drive/sideBar.tsx index c1ab727..2a7a80d 100644 --- a/web/src/containers/Drive/sideBar.tsx +++ b/web/src/containers/Drive/sideBar.tsx @@ -56,7 +56,7 @@ const SideBar = (props: any) => { }) const queryParams = new URLSearchParams(location.search) props.setSelectedFilePath(queryParams.get('filePath')) - }, []) + }) const handleSelect = (node: TreeNode) => { if (!node.children.length) {