fix: collectionIcon expanded props is no longer driven by expanded state

This commit is contained in:
Saumya Pandey committed 2022-02-14 01:28:39 +05:30
1 parent 32886aa8d7
commit 0e42748bb6
1 file changed
+6 -1
@@ -33,6 +33,8 @@ type Props = {
belowCollection: Collection | void;
};
// highliight if active and document collapsed with more transperancy
function CollectionLink({
collection,
activeDocument,
@@ -252,7 +254,10 @@ function CollectionLink({
setExpanded((prev) => !prev);
}}
/>
<CollectionIcon collection={collection} expanded={expanded} />
<CollectionIcon
collection={collection}
expanded={collection.id === ui.activeCollectionId}
/>
</>
}
showActions={menuOpen}