mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 18:25:29 +01:00
Fix: Uncaught TypeError: Cannot set properties of null
This commit is contained in:
parent
8f1d214b12
commit
38afc6e6f8
@ -31,11 +31,15 @@ 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"
|
||||||
|
if (handle != null) { // render results don't have a handle
|
||||||
handle.innerHTML = '➕' // plus
|
handle.innerHTML = '➕' // plus
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
content.style.display = "block"
|
content.style.display = "block"
|
||||||
|
if (handle != null) { // render results don't have a handle
|
||||||
handle.innerHTML = '➖' // minus
|
handle.innerHTML = '➖' // minus
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (COLLAPSIBLES_INITIALIZED && COLLAPSIBLE_PANELS.includes(element)) {
|
if (COLLAPSIBLES_INITIALIZED && COLLAPSIBLE_PANELS.includes(element)) {
|
||||||
saveCollapsibles()
|
saveCollapsibles()
|
||||||
|
Loading…
Reference in New Issue
Block a user