Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

collection closing bug fixed

daniel31x13906779010e1a
diff --git a/components/CollectionListing.tsx b/components/CollectionListing.tsx
index 0bc2c9d5..3ff24151 100644
--- a/components/CollectionListing.tsx
+++ b/components/CollectionListing.tsx
@@ -45,6 +45,7 @@ const CollectionListing = () => {
return buildTreeFromCollections(
collections,
router,
+ tree,
user.collectionOrder
);
} else return undefined;
@@ -324,6 +325,7 @@ const Dropdown = (
const buildTreeFromCollections = (
collections: CollectionIncludingMembersAndLinkCount[],
router: ReturnType<typeof useRouter>,
+ tree?: TreeData,
order?: number[]
): TreeData => {
if (order) {
@@ -338,7 +340,7 @@ const buildTreeFromCollections = (
id: collection.id,
children: [],
hasChildren: false,
- isExpanded: false,
+ isExpanded: tree?.items[collection.id as number]?.isExpanded || false,
data: {
id: collection.id,
parentId: collection.parentId,