mirror of
https://github.com/stashapp/stash.git
synced 2025-12-14 20:33:16 +01:00
Reset to first page when changing sort by
This commit is contained in:
parent
9ed941dd35
commit
484bff8d2d
1 changed files with 1 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ export class ListHook {
|
|||
function onChangeSortBy(sortBy: string) {
|
||||
const newFilter = _.cloneDeep(filter);
|
||||
newFilter.sortBy = sortBy;
|
||||
newFilter.currentPage = 1;
|
||||
setFilter(newFilter);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue