Skip to content

Commit

Permalink
fix: get child
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Sep 2, 2024
1 parent 2976c93 commit 6847b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const comment = (() => {
}

response.data.is_admin = session.isAdmin();
const length = document.getElementById('comments').childNodes.length;
const length = document.getElementById('comments').children.length;
pagination.setResultData(length);

if (length == pagination.getPer()) {
Expand Down

0 comments on commit 6847b78

Please sign in to comment.