diff options
author | Mario <mario@mariovavti.com> | 2025-06-18 17:01:26 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-06-18 17:01:26 +0000 |
commit | 44600c46c6973d32b6ed10b1e230e5267a334a8c (patch) | |
tree | 84d99ef6605fda057eefd06a694798e2ffc60e1a | |
parent | b5c7fff3164337e831e78efc8a322617882399e4 (diff) | |
download | volse-hubzilla-44600c46c6973d32b6ed10b1e230e5267a334a8c.tar.gz volse-hubzilla-44600c46c6973d32b6ed10b1e230e5267a334a8c.tar.bz2 volse-hubzilla-44600c46c6973d32b6ed10b1e230e5267a334a8c.zip |
make sure there is a comment button before attempting to add a class to it
-rw-r--r-- | view/js/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index ba053b32d..6e7e2a42f 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -902,7 +902,9 @@ function updateConvItems(mode, data) { } // Set the button and sub-thread-wrapper state - elem.parentNode.parentNode.querySelector('.wall-item-comment').classList.add('expanded'); + if (elem.parentNode.parentNode.querySelector('.wall-item-comment')) { + elem.parentNode.parentNode.querySelector('.wall-item-comment').classList.add('expanded'); + } elem.parentNode.classList.add('item-expanded'); } |