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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user