diff --git a/components/CollectionListing.tsx b/components/CollectionListing.tsx index cb66b140..a8d580b0 100644 --- a/components/CollectionListing.tsx +++ b/components/CollectionListing.tsx @@ -84,14 +84,24 @@ const CollectionItem = ({ }, [isActiveOrParentOfActive]); return hasChildren ? ( -
- +
+
-
- - {hasChildren && ( -
+
+ {isOpen && hasChildren && ( +
{collections .filter((e) => e.parentId === collection.id) .map((subCollection) => ( @@ -129,7 +138,7 @@ const CollectionItem = ({ ))}
)} -
+ ) : (