Don't display 'view collection' menu item on collection page (#39694)

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk 2026-07-02 14:45:21 +02:00 committed by Claire
parent 06d64519da
commit 7db2a99504

View File

@ -163,11 +163,7 @@ export const CollectionMenu: React.FC<{
return ownerItems;
}
} else {
const nonOwnerItems: MenuItem[] = [
viewCollectionItem,
...shareItems,
null,
];
const nonOwnerItems: MenuItem[] = [...shareItems, null];
// Collection notifications already have a prominent 'Remove me' button
if (currentAccountInCollection && context !== 'notifications') {
@ -189,6 +185,10 @@ export const CollectionMenu: React.FC<{
});
}
if (context !== 'collection') {
return [viewCollectionItem, ...nonOwnerItems];
}
return nonOwnerItems;
}
}, [