You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
items-per-page=0 in the URL empties the file list #4196
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
items-per-page=0 in the URL empties the file list and throws page errors, and -1 hides the last item. usePagination.ts only falls back to the default for NaN.
Reproduction Steps
Open a folder with 5 files and ?items-per-page=0
Then open it with items-per-page=-1
Expected Outcome
Invalid values are ignored and the default is used.
Actual Outcome
With 0 the list is empty with Invalid array length page errors. With -1 only 4 of 5 files show.
Activity