Skip to content

Commit fab3dce

Browse files
authored
fix(dashboard): show folders in root (#8657)
1 parent 9a33370 commit fab3dce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/app/src/app/pages/Dashboard/Content/routes/Sandboxes/useFilteredItems.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ export const useFilteredItems = (
3939
useEffect(() => {
4040
const sandboxesForPath = getFilteredSandboxes(folderSandboxes || []);
4141
const normalizedPath = normalizePath(path);
42+
4243
const folderFolders =
4344
allCollections?.filter(
44-
collection => getParentPath(collection.path) === normalizedPath
45+
collection =>
46+
normalizePath(getParentPath(collection.path)) === normalizedPath
4547
) || [];
4648

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

0 commit comments

Comments
 (0)