Skip to content

Commit

Permalink
pagination bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Weedshaker committed Mar 7, 2023
1 parent 711b919 commit c4f919c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/es/components/molecules/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class Pagination extends HTMLElement {
pageItems += `<li class="page-item ${i === offset / Environment.articlesPerPageLimit ? 'active' : ''}"><a class="page-link" href="">${i + 1}</a></li>`
counter++
}
if (counter > 1) {
if (pageItems) {
this.innerHTML = `
<nav>
<ul class="pagination">
Expand Down

0 comments on commit c4f919c

Please sign in to comment.