diff --git a/catalog/app/containers/Bucket/PackageTree/PackageTree.tsx b/catalog/app/containers/Bucket/PackageTree/PackageTree.tsx index 4996fe76638..cabdceb9b73 100644 --- a/catalog/app/containers/Bucket/PackageTree/PackageTree.tsx +++ b/catalog/app/containers/Bucket/PackageTree/PackageTree.tsx @@ -154,8 +154,9 @@ function SelectionWidget({ className, selection, onSelection }: SelectionWidgetP diff --git a/catalog/app/containers/Bucket/Selection/Dashboard.tsx b/catalog/app/containers/Bucket/Selection/Dashboard.tsx index fcf65f0b226..0f2409848d0 100644 --- a/catalog/app/containers/Bucket/Selection/Dashboard.tsx +++ b/catalog/app/containers/Bucket/Selection/Dashboard.tsx @@ -128,14 +128,24 @@ interface DashboardProps { onDone: () => void onSelection: (changed: ListingSelection) => void selection: ListingSelection + packages?: boolean } -export default function Dashboard({ onDone, onSelection, selection }: DashboardProps) { +export default function Dashboard({ + onDone, + onSelection, + selection, + packages = false, +}: DashboardProps) { const classes = useStyles() const lists = React.useMemo(() => toHandlesMap(selection), [selection]) const hasSelection = Object.values(selection).some((ids) => !!ids.length) - const bookmarks = Bookmarks.use() + const bookmarksCtx = Bookmarks.use() + const bookmarks = React.useMemo( + () => !packages && bookmarksCtx, + [packages, bookmarksCtx], + ) const hasSomethingToBookmark = React.useMemo( () => bookmarks &&