mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-01 06:44:56 +02:00
Merge pull request #455 from JeLuF/util-js
Fix: Uncaught TypeError: Cannot set properties of null
This commit is contained in:
commit
16d6644573
@ -31,10 +31,14 @@ function toggleCollapsible(element) {
|
|||||||
let content = getNextSibling(collapsibleHeader, '.collapsible-content')
|
let content = getNextSibling(collapsibleHeader, '.collapsible-content')
|
||||||
if (content.style.display === "block") {
|
if (content.style.display === "block") {
|
||||||
content.style.display = "none"
|
content.style.display = "none"
|
||||||
handle.innerHTML = '➕' // plus
|
if (handle != null) { // render results don't have a handle
|
||||||
|
handle.innerHTML = '➕' // plus
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
content.style.display = "block"
|
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)) {
|
if (COLLAPSIBLES_INITIALIZED && COLLAPSIBLE_PANELS.includes(element)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user