Description
In src/components/miners/MinerPRsTable.tsx (~line 249), the author filter chip's onDelete handler only calls setSelectedAuthor(null) but does not call setPage(0):
<Chip
variant="filter"
label={`Author: ${selectedAuthor}`}
onDelete={() => setSelectedAuthor(null)}
/>
Every other filter control (status filter buttons: All, Open, Merged, Closed) correctly resets the page:
onClick={() => {
setStatusFilter('all');
setPage(0);
}}
Steps to Reproduce
- Navigate to a miner's PR list with multiple pages.
- Navigate to page 2 or beyond.
- Type/select an author filter so fewer results show.
- Delete the author filter chip.
- The table may show an empty page because the page index is now out of range.
Expected Behavior
Removing the author filter chip should reset the page to 0, consistent with all other filter controls.
Actual Behavior
The page index is not reset, potentially leaving the user on an empty page.
Description
In
src/components/miners/MinerPRsTable.tsx(~line 249), the author filter chip'sonDeletehandler only callssetSelectedAuthor(null)but does not callsetPage(0):Every other filter control (status filter buttons: All, Open, Merged, Closed) correctly resets the page:
Steps to Reproduce
Expected Behavior
Removing the author filter chip should reset the page to 0, consistent with all other filter controls.
Actual Behavior
The page index is not reset, potentially leaving the user on an empty page.