Skip to content

Mismatch between displayed page and fetched data after project change #4634

@nowgnuesLee

Description

@nowgnuesLee

When switching projects, the pagination current value remains unchanged, causing a mismatch between the page shown in the UI and the actual data fetched.
This leads to:

  • UI showing page N while the data corresponds to a different or invalid page.
  • Click events failing when the displayed page does not exist in the new dataset.

Steps to Reproduce

  1. Navigate to Project A and go to page 2.
  2. Switch to Project B with fewer items.
  3. Observe that the UI still shows page 2, but the data is empty or inconsistent.

Expected Behavior

The displayed page should always match the data being fetched after a project change.


Actual Behavior

Pagination remains on the previous page, creating a mismatch between UI and data.


Impact

Users experience confusion and broken navigation when switching projects with different data sizes.


Proposed Solutions

  1. Reset approach: Reset pagination to page 1 whenever the project changes.
  2. Maintain but inform: Keep the current page but clearly indicate invalid state and allow the user to select a valid page.

JIRA Issue: FR-1678

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions