diff --git a/CHANGELOG.md b/CHANGELOG.md index a1991a5f..28ff6edb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGE LOG +## Unreleased + +- Fix error when collections are empty + ## [0.18.2] - Fix cut off text on search bar dropdown diff --git a/src/components/CollectionList/CollectionList.tsx b/src/components/CollectionList/CollectionList.tsx index afff1faa..8844eb8c 100644 --- a/src/components/CollectionList/CollectionList.tsx +++ b/src/components/CollectionList/CollectionList.tsx @@ -26,7 +26,7 @@ export const CollectionList: React.FC<{ collections: Opds2Feed }> = ({ return ( - {collections ? ( + {collections && collections.groups ? ( <> {collections.groups.map((collection, index) => {