File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments