Description
In src/commands/data/list.tsx, deleting the last remaining item on the final page of the data list fails to decrement the current page state, leaving the user stranded on an empty, out-of-bounds page.
Environment
- macOS version: N/A
- Apple Silicon: N/A
- Node version: N/A
- Python version: N/A
- Nanotune version: Latest
Steps to Reproduce
- Open the data list view via
nanotune data list.
- Navigate to the last page (e.g., Page 2/2).
- Ensure there is only 1 item on this last page.
- Delete the item using the
d hotkey.
Expected Behavior
The UI should automatically navigate back to the previous page (e.g., Page 1/1) since Page 2 no longer exists.
Actual Behavior
The table is empty, and the header reads "Page 2/1". The user is stuck until they manually press the Left arrow key.
Additional Context
Description
In
src/commands/data/list.tsx, deleting the last remaining item on the final page of the data list fails to decrement the currentpagestate, leaving the user stranded on an empty, out-of-bounds page.Environment
Steps to Reproduce
nanotune data list.dhotkey.Expected Behavior
The UI should automatically navigate back to the previous page (e.g., Page 1/1) since Page 2 no longer exists.
Actual Behavior
The table is empty, and the header reads "Page 2/1". The user is stuck until they manually press the Left arrow key.
Additional Context