mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-11 16:58:31 +01:00
Fix restoration of inactive image modifiers
This commit is contained in:
parent
64cfd55065
commit
3f9ec378a0
@ -246,7 +246,7 @@ function refreshInactiveTags(inactiveTags) {
|
|||||||
overlays.forEach((i) => {
|
overlays.forEach((i) => {
|
||||||
let modifierName = i.parentElement.getElementsByClassName("modifier-card-label")[0].getElementsByTagName("p")[0]
|
let modifierName = i.parentElement.getElementsByClassName("modifier-card-label")[0].getElementsByTagName("p")[0]
|
||||||
.dataset.fullName
|
.dataset.fullName
|
||||||
if (inactiveTags?.find((element) => element === modifierName) !== undefined) {
|
if (inactiveTags?.find((element) => trimModifiers(element) === modifierName) !== undefined) {
|
||||||
i.parentElement.classList.add("modifier-toggle-inactive")
|
i.parentElement.classList.add("modifier-toggle-inactive")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user