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

View File

@@ -124,6 +124,7 @@
if (newVal) {
updateAvatarTagsSelection();
updateSelectedAvatarTags();
updateInputAvatarTags();
}
}
);
@@ -270,7 +271,7 @@
D.contentSex = true;
break;
}
if (!D.selectedTags.includes(`content_${tag}`)) {
if (tag && !D.selectedTags.includes(`content_${tag}`)) {
D.selectedTags.push(`content_${tag}`);
}
}