Skip to content

Commit 6132d9b

Browse files
committed
Update: set pagination info to show properly
1 parent 4dac873 commit 6132d9b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Dist/WebflowOnly/CMSFilter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ class CMSFilter {
4646
this.itemsPerPage = this.allItems.length;
4747
if (this.paginationWrapper) {
4848
await this.LoadAllItems();
49-
}
50-
if (this.paginationcounter && this.paginationcounter != this.paginationWrapper.querySelector('.w-page-count')) {
51-
this.paginationWrapper.querySelector('.w-page-count').remove();
52-
} else {
53-
this.paginationcounter = this.paginationWrapper.querySelector('.w-page-count');
49+
if (this.paginationcounter && this.paginationcounter != this.paginationWrapper.querySelector('.w-page-count')) {
50+
this.paginationWrapper.querySelector('.w-page-count').remove();
51+
} else {
52+
this.paginationcounter = this.paginationWrapper.querySelector('.w-page-count');
53+
}
5454
}
5555
this.SetupEventListeners();
5656
this.RenderItems();
@@ -562,7 +562,7 @@ class CMSFilter {
562562

563563
this.ApplyFilters();
564564
}
565-
565+
566566
ResetInteraction(element) {
567567
if (!element) {
568568
console.error('Element not found');

0 commit comments

Comments
 (0)