Skip to content

Commit

Permalink
feat: add count !== undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Jan 3, 2025
1 parent 84e7840 commit 941ab22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/AssetList/AssetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 941ab22

Please sign in to comment.