Skip to content

Fix page selector showing 50+ pages on initial state with no data #34

@technologic-technologic

Description

When opening the app in its initial state, the page selector component incorrectly renders 50+ page options, even when there is no data present. This is misleading and can confuse users, as there should be no pages to select from if the dataset is empty.

Expected behavior:

  • If there is no data present, the page selector should not display any page options (or should be disabled).
  • The correct page count should be dynamically rendered based on available data.

Steps to reproduce:

  1. Open the app to its initial state with no data loaded.
  2. Observe the page selector displaying an excessive number of pages (e.g., 50+).

Suggested fix:

  • Update the logic in the page selector component to only show pages if there is data to paginate.
  • Ensure the component checks for the actual number of items before rendering the page count.

Labels:

  • bug
  • attention

Metadata

Metadata

Labels

attentionImportant requirementsbugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions