mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 02:05:09 +01:00
Revert changes to refreshTagsList
This commit is contained in:
parent
0efa4ffb23
commit
4264c2e266
@ -1424,11 +1424,13 @@ function refreshTagsList() {
|
||||
editorModifierTagsList.appendChild(tag.element);
|
||||
|
||||
tag.element.addEventListener('click', () => {
|
||||
if (index !== -1) {
|
||||
activeTags[index].originElement.classList.remove(activeCardClass);
|
||||
activeTags[index].originElement.querySelector('.modifier-card-image-overlay').innerText = '+';
|
||||
let idx = activeTags.indexOf(tag);
|
||||
|
||||
activeTags.splice(index, 1);
|
||||
if (idx !== -1) {
|
||||
activeTags[idx].originElement.classList.remove(activeCardClass);
|
||||
activeTags[idx].originElement.querySelector('.modifier-card-overlay').innerText = '+';
|
||||
|
||||
activeTags.splice(idx, 1);
|
||||
refreshTagsList();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user