From 0a88502d8186b66411e82f642ec42d96b87b8de6 Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Mon, 24 Jan 2022 17:22:34 -0500 Subject: [PATCH] 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. --- UI/Web/src/app/library-detail/library-detail.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/Web/src/app/library-detail/library-detail.component.ts b/UI/Web/src/app/library-detail/library-detail.component.ts index 13fc0e885..05e122913 100644 --- a/UI/Web/src/app/library-detail/library-detail.component.ts +++ b/UI/Web/src/app/library-detail/library-detail.component.ts @@ -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 {