diff --git a/overseerr-api.yml b/overseerr-api.yml index ac76f6a7e..9378d8db9 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -5448,6 +5448,7 @@ paths: schema: type: string enum: [asc, desc] + nullable: true default: desc - in: query name: requestedBy diff --git a/src/components/RequestList/index.tsx b/src/components/RequestList/index.tsx index 2a07059ff..1dba8c0a8 100644 --- a/src/components/RequestList/index.tsx +++ b/src/components/RequestList/index.tsx @@ -87,8 +87,10 @@ const RequestList = () => { setCurrentFilter(filterSettings.currentFilter); setCurrentSort(filterSettings.currentSort); - setCurrentSortDirection(filterSettings.currentSortDirection); setCurrentPageSize(filterSettings.currentPageSize); + if (['asc', 'desc'].includes(filterSettings.currentSortDirection)) { + setCurrentSortDirection(filterSettings.currentSortDirection); + } } // If filter value is provided in query, use that instead