1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2026-03-24 23:02:58 +00:00

Fixed tag removal stopping on the first encountered missing tag

Syntax of `-tagname` we rely upon here will stop execution of suggested
tags when first tag which is not present in the editor is encountered.
Just a Philomena's specific quirk, nothing more.
This commit is contained in:
2026-03-12 01:07:37 +04:00
parent 2a2a488592
commit 7f41a7e6f0

View File

@@ -180,7 +180,11 @@ export class TagsForm extends BaseComponent {
}
if (removedTags) {
tagChangeList.push(...Array.from(removedTags).map(tagName => `-${tagName}`));
tagChangeList.push(
...Array.from(removedTags)
.filter(tagName => this.#tagsSet.has(tagName))
.map(tagName => `-${tagName}`)
);
}
this.#applyTagChangesWithFancyTagEditor(