Fix restoration of inactive image modifiers

This commit is contained in:
patriceac 2023-05-04 09:16:19 -07:00 committed by GitHub
parent 64cfd55065
commit 3f9ec378a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,7 @@ function refreshInactiveTags(inactiveTags) {
overlays.forEach((i) => {
let modifierName = i.parentElement.getElementsByClassName("modifier-card-label")[0].getElementsByTagName("p")[0]
.dataset.fullName
if (inactiveTags?.find((element) => element === modifierName) !== undefined) {
if (inactiveTags?.find((element) => trimModifiers(element) === modifierName) !== undefined) {
i.parentElement.classList.add("modifier-toggle-inactive")
}
})