Skip to content

Paginator fails when itemsPerPage is 0 and showGoToPage is true #1619

@raquelarrojo

Description

@raquelarrojo

Describe the bug
Paginator fails when itemsPerPage is 0 and showGoToPage is true, since it is making this operation totalItems / itemsPerPage. The result of this operation (totalItems / 0) is Infinity. So when it is trying to make Array(Infinity) it fails.

Expected behaviour
It should not fail and it should be shown like this:

image

Screenshots
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjiraThis task is referenced in a story of Jira

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions