forked from extern/easydiffusion
Merge pull request #455 from JeLuF/util-js
Fix: Uncaught TypeError: Cannot set properties of null
This commit is contained in:
commit
16d6644573
@ -31,11 +31,15 @@ function toggleCollapsible(element) {
|
||||
let content = getNextSibling(collapsibleHeader, '.collapsible-content')
|
||||
if (content.style.display === "block") {
|
||||
content.style.display = "none"
|
||||
if (handle != null) { // render results don't have a handle
|
||||
handle.innerHTML = '➕' // plus
|
||||
}
|
||||
} else {
|
||||
content.style.display = "block"
|
||||
if (handle != null) { // render results don't have a handle
|
||||
handle.innerHTML = '➖' // minus
|
||||
}
|
||||
}
|
||||
|
||||
if (COLLAPSIBLES_INITIALIZED && COLLAPSIBLE_PANELS.includes(element)) {
|
||||
saveCollapsibles()
|
||||
|
Loading…
Reference in New Issue
Block a user