Skip to content

Commit

Permalink
issue #138 Reset paging on "sort" change
Browse files Browse the repository at this point in the history
  • Loading branch information
wajda committed Sep 22, 2021
1 parent ad06fc9 commit 5def2ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export abstract class SearchDataSource<TDataRecord = unknown,
}

sort(sortBy: QuerySorter.FieldSorter<TSortableFields>[]): void {
this.updateSearchParams({ sortBy })
this.updateSearchParams(this.withResetPagination({ sortBy }))
}

setFilter(filterValue: TFilter): void {
Expand Down

0 comments on commit 5def2ca

Please sign in to comment.