Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8258

The next page button on the document view are clickable even after there is no document on the next pages

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 1.44.3
    • Affects Version/s: 1.44.3
    • Component/s: None
    • None
    • Environment:
      OS: MacOs Sonoma v14.5

      node.js / npm versions:
      Additional info:
      Compass version : Version 1.43.6 (1.43.6)
    • Developer Tools
    • Not Needed

      Problem Statement/Rationale

      The next page button in the Document view tab can be clicked even if there are no more next pages. For example, I have a collection of 139 documents and I have set the number of documents per page to 100. So each page will display 100 data. on the 2nd page, there is only 39 documents, and I can click the next page up to 5-6 times even if there is no more documents available on the collection. 

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      1. Go to any collection that has around 140 documents.
      2. Set the document per page count to 100
      3. Click the next page twice. and it displays "No Result" 
      4. The Next page button can be clicked again if there is no document in the next page.

      Expected Results

      The next page button must be disabled if there is no document to display 

      Actual Results

      The next page button can be clicked at least 5-6 times even if there is no document for display

      Additional Notes

      Video attachment added

            Assignee:
            Unassigned Unassigned
            Reporter:
            aswinta98@gmail.com Aswin Ta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: