diff --git a/frontend/javascripts/dashboard/dataset_folder_view.tsx b/frontend/javascripts/dashboard/dataset_folder_view.tsx index 9f46f89c4f..cc61c7e423 100644 --- a/frontend/javascripts/dashboard/dataset_folder_view.tsx +++ b/frontend/javascripts/dashboard/dataset_folder_view.tsx @@ -13,6 +13,7 @@ import { EditFolderModal } from "./folders/edit_folder_modal"; import { FolderTreeSidebar } from "./folders/folder_tree"; import features, { getDemoDatasetUrl } from "features"; import { RenderToPortal } from "oxalis/view/layouting/portal_utils"; +import { useFolderHierarchyQuery } from "./dataset/queries"; type Props = { user: APIUser; @@ -30,6 +31,7 @@ function DatasetFolderViewInner(props: Props) { const context = useDatasetCollectionContext(); const { selectedDatasets, setSelectedDatasets } = context; const [folderIdForEditModal, setFolderIdForEditModal] = useState(null); + const { data: hierarchy } = useFolderHierarchyQuery(); const setSelectedDataset = (ds: APIDatasetCompact | null, multiSelect?: boolean) => { if (!ds) { @@ -139,7 +141,7 @@ function DatasetFolderViewInner(props: Props) { return ( - {adminHeader}; + {adminHeader}