Fix group creation inheriting tags from characters[0]

ee13cef37f16f771ffeca6fad654bab14236c133

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -4Ignore whitespace
public/scripts/tags.js+4 -4
@@ -1259,11 +1259,11 @@ export function applyTagsOnCharacterSelect(chid = null) {
12591259 if (menu_type === 'create') {
12601260 const currentTagIds = $('#tagList').find('.tag').map((_, el) => $(el).attr('id')).get();
12611261 const currentTags = tags.filter(x => currentTagIds.includes(x.id));
12621262 printTagList($('#tagList'), { forEntityOrKey: nullundefined, tags: currentTags, tagOptions: { removable: true } });
12631263 return;
12641264 }
12651265
12661266 chid = chid ?? (this_chid !== undefined ? Number(this_chid) : undefined);
12671267 printTagList($('#tagList'), { forEntityOrKey: chid, tagOptions: { removable: true } });
12681268}
12691269
@@ -1272,11 +1272,11 @@ export function applyTagsOnGroupSelect(groupId = null) {
12721272 if (menu_type === 'group_create') {
12731273 const currentTagIds = $('#groupTagList').find('.tag').map((_, el) => $(el).attr('id')).get();
12741274 const currentTags = tags.filter(x => currentTagIds.includes(x.id));
12751275 printTagList($('#groupTagList'), { forEntityOrKey: nullundefined, tags: currentTags, tagOptions: { removable: true } });
12761276 return;
12771277 }
12781278
12791279 groupId = groupId ?? (selected_group ? Number(selected_group) : undefined);
12801280 printTagList($('#groupTagList'), { forEntityOrKey: groupId, tagOptions: { removable: true } });
12811281}
12821282