Skip to content

Commit

Permalink
fix(dashboard): show folders in root (#8657)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnm authored Nov 11, 2024
1 parent 9a33370 commit fab3dce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ export const useFilteredItems = (
useEffect(() => {
const sandboxesForPath = getFilteredSandboxes(folderSandboxes || []);
const normalizedPath = normalizePath(path);

const folderFolders =
allCollections?.filter(
collection => getParentPath(collection.path) === normalizedPath
collection =>
normalizePath(getParentPath(collection.path)) === normalizedPath
) || [];

const sortedFolders = orderBy(folderFolders, 'name').sort(a => 1);
Expand Down

0 comments on commit fab3dce

Please sign in to comment.