From 6847b78ee74a8207ae4b2bf379a673edb4a38dd5 Mon Sep 17 00:00:00 2001 From: dewanakl Date: Mon, 2 Sep 2024 14:25:39 +0700 Subject: [PATCH] fix: get child --- js/comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/comment.js b/js/comment.js index 1dbc460..d1b38c0 100644 --- a/js/comment.js +++ b/js/comment.js @@ -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()) {