From 941ab2212d11690ee6cf4a9970481000f8654d38 Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Fri, 3 Jan 2025 18:48:13 +0100 Subject: [PATCH] feat: add count !== undefined check --- webapp/src/components/AssetList/AssetList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/AssetList/AssetList.tsx b/webapp/src/components/AssetList/AssetList.tsx index 51566b838f..53bda9a84a 100644 --- a/webapp/src/components/AssetList/AssetList.tsx +++ b/webapp/src/components/AssetList/AssetList.tsx @@ -44,7 +44,7 @@ const AssetList = (props: Props) => { ) const maxQuerySize = getMaxQuerySize(vendor) - const hasMorePages = !isLoading && (assets.length !== count || count === maxQuerySize) && page <= MAX_PAGE + const hasMorePages = !isLoading && count !== undefined && (assets.length !== count || count === maxQuerySize) && page <= MAX_PAGE const emptyStateTranslationString = useMemo(() => { if (assets.length > 0) {