Fix custom avatar content tags removing incorrectly

This commit is contained in:
Natsumi
2025-04-14 16:34:28 +10:00
parent 9cdc169289
commit df96ef29ac
@@ -124,6 +124,7 @@
if (newVal) { if (newVal) {
updateAvatarTagsSelection(); updateAvatarTagsSelection();
updateSelectedAvatarTags(); updateSelectedAvatarTags();
updateInputAvatarTags();
} }
} }
); );
@@ -270,7 +271,7 @@
D.contentSex = true; D.contentSex = true;
break; break;
} }
if (!D.selectedTags.includes(`content_${tag}`)) { if (tag && !D.selectedTags.includes(`content_${tag}`)) {
D.selectedTags.push(`content_${tag}`); D.selectedTags.push(`content_${tag}`);
} }
} }