Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabtieu committed Jan 21, 2021
1 parent 5d31202 commit 0faf587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/pagination.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if (typeof total_length !== 'undefined') {
if (typeof total_length !== 'undefined' && total_length > 0) {
var page = new URL(window.location.href).searchParams.get("page");
$(() => $('#pagination').twbsPagination({
totalPages: total_length,
Expand Down

0 comments on commit 0faf587

Please sign in to comment.