From 8557fcb8a6327dadbdb03a6f96bffea6daf206e3 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Thu, 31 Oct 2024 13:28:18 +0100 Subject: [PATCH] avoid possible negative offset --- client/src/components/Libraries/LibraryFolder/LibraryFolder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Libraries/LibraryFolder/LibraryFolder.vue b/client/src/components/Libraries/LibraryFolder/LibraryFolder.vue index 3d1ca0999131..e8ddce0e5a53 100644 --- a/client/src/components/Libraries/LibraryFolder/LibraryFolder.vue +++ b/client/src/components/Libraries/LibraryFolder/LibraryFolder.vue @@ -384,7 +384,7 @@ export default { this.sortBy, this.sortDesc, this.perPage, - (this.currentPage - 1) * this.perPage, + (this.currentPage ? this.currentPage - 1 : 0) * this.perPage, this.searchText ) .then((response) => {