Skip to content

Commit b42d56d

Browse files
fix: check if count is > 0 (#2387)
1 parent dcabec5 commit b42d56d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webapp/src/components/AssetList/AssetList.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const AssetList = (props: Props) => {
4444
)
4545
const maxQuerySize = getMaxQuerySize(vendor)
4646

47-
const hasMorePages = !isLoading && count !== undefined && (assets.length !== count || count === maxQuerySize) && page <= MAX_PAGE
47+
const hasMorePages =
48+
!isLoading && count !== undefined && count > 0 && (assets.length !== count || count === maxQuerySize) && page <= MAX_PAGE
4849

4950
const emptyStateTranslationString = useMemo(() => {
5051
if (assets.length > 0) {

0 commit comments

Comments
 (0)