Skip to content

Fix report list not reloading when switching filter#593

Open
zhaoyulin1828 wants to merge 1 commit into
DanXi-Dev:mainfrom
zhaoyulin1828:fix/report-filter-reload
Open

Fix report list not reloading when switching filter#593
zhaoyulin1828 wants to merge 1 commit into
DanXi-Dev:mainfrom
zhaoyulin1828:fix/report-filter-reload

Conversation

@zhaoyulin1828
Copy link
Copy Markdown

Problem

For admin users, when there are no "Not Dealt" reports, switching to "Dealt" could show an empty list and fail to load handled reports.

Root Cause

ReportModel.filterOption only cleared reports, but the list loading flow in AsyncCollection was not reliably retriggered in the empty-to-empty transition.

Fix

  • Reset endReached when filterOption changes.
  • Rebuild AsyncCollection on filter change via .id(model.filterOption) in ReportPage.

Verification

  • Open Reports Management as an admin account.
  • Ensure "Not Dealt" is empty.
  • Switch to "Dealt" and "All Reports".
  • Lists now load correctly instead of staying empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant