From f6e676c7396f66983dd56e88d1fc74e72cca77d4 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 7 Aug 2024 17:15:35 -0400 Subject: [PATCH 1/2] NO-REF: Hot fix - check if collection groups is defined --- src/components/CollectionList/CollectionList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => { From e21b048969b51b0707cbf1c4eaf3c793e18c0fb3 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 7 Aug 2024 17:17:42 -0400 Subject: [PATCH 2/2] updating change log --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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