Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Library page resetting (#984)

Robbie Davis0a88502d8186
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 {