Skip to content

Possible to go past end of DMARC Report table when clicking next #2050

@ThomasNickerson

Description

@ThomasNickerson

Describe the bug
Clicking next too many times on the table at https://tracker.alpha.canada.ca/dmarc-summaries causes the table to be replaced by the "No data for the DMARC summary table" message, which removes access to pagination controls until the page is reloaded.

To Reproduce

  1. go to the DMARC summary table (click DMARC Report on navbar)
  2. set items per page to 100
  3. click next twice

Expected behavior
The next button should be disabled if there are no more records to show.
The error message should probably only replace the table rather than the pagination controls as well as the table.

Screenshots
After clicking next once with 100 records per page notice that there are only 95 records on this page
image

Still on the same page, the next button is not disabled
image

After clicking next
image

Desktop (please complete the following information):

  • Windows 10
  • Chrome
  • Version 89

Additional context
If you leave the page and return after experiencing this bug (i.e. after Apollo has cached query results), the next button will be disabled as expected when there are no more results to show.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions