mirror of
https://github.com/outline/outline.git
synced 2026-12-01 01:14:11 +03:00
fix: collectionIcon expanded props is no longer driven by expanded state
This commit is contained in:
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}
|
||||
|
||||
Reference in new issue
Block a user