From a1d6c43f08632b48a0c59464831f3a0a38730714 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 30 Aug 2023 12:08:25 +0530 Subject: [PATCH] fix nan issue --- .../src/components/Collections/AllCollections/content.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/photos/src/components/Collections/AllCollections/content.tsx b/apps/photos/src/components/Collections/AllCollections/content.tsx index 5c6fadbf6..13ff3e4b7 100644 --- a/apps/photos/src/components/Collections/AllCollections/content.tsx +++ b/apps/photos/src/components/Collections/AllCollections/content.tsx @@ -23,7 +23,7 @@ const getCollectionRowListHeight = ( Math.min( collectionRowList.length * CollectionRowItemSize + 32, windowSize?.height - 177 - ) ?? 0; + ) || 0; interface Iprops { collectionSummaries: CollectionSummary[];