diff --git a/ui/media/js/utils.js b/ui/media/js/utils.js index cb7dfdab..95ec809f 100644 --- a/ui/media/js/utils.js +++ b/ui/media/js/utils.js @@ -31,10 +31,14 @@ function toggleCollapsible(element) { let content = getNextSibling(collapsibleHeader, '.collapsible-content') if (content.style.display === "block") { content.style.display = "none" - handle.innerHTML = '➕' // plus + if (handle != null) { // render results don't have a handle + handle.innerHTML = '➕' // plus + } } else { content.style.display = "block" - handle.innerHTML = '➖' // minus + if (handle != null) { // render results don't have a handle + handle.innerHTML = '➖' // minus + } } if (COLLAPSIBLES_INITIALIZED && COLLAPSIBLE_PANELS.includes(element)) {