Library page resetting (#984)

# Fixed
- Fixed: Fixed an issue where the pagination would reset to 1 when refreshing or navigating directly to a page number.
This commit is contained in:
Robbie Davis 2022-01-24 17:22:34 -05:00 committed by GitHub
parent 5bf80d8515
commit 0a88502d81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,8 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {
updateFilter(data: SeriesFilter) {
this.filter = data;
if (this.pagination !== undefined && this.pagination !== null) {
const page = this.getPage();
if (page === undefined || page === null) {
this.pagination.currentPage = 1;
this.onPageChange(this.pagination);
} else {