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:
koloml committed 2026-03-12 01:07:37 +04:00
1 parent 2a2a488592
commit 7f41a7e6f0
1 file changed
+5 -1
+5 -1
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(