Fix gallery for first in the list

50e49cd67b476fe5f7d9393aa4d5b83e324f2b75

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

1 files changed, +2 -2Ignore whitespace
public/scripts/extensions/gallery/index.js+2 -2
@@ -169,7 +169,7 @@ async function showCharGallery() {
169169
170170 try {
171171 let url = selected_group || this_chid;
172172 if (!selected_group && this_chid !== undefined) {
173173 const char = characters[this_chid];
174174 url = char.avatar.replace('.png', '');
175175 }
@@ -455,7 +455,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({
455455async function listGalleryCommand(args) {
456456 try {
457457 let url = args.char ?? (args.group ? groups.find(it => it.name == args.group)?.id : null) ?? (selected_group || this_chid);
458458 if (!args.char && !args.group && !selected_group && this_chid !== undefined) {
459459 const char = characters[this_chid];
460460 url = char.avatar.replace('.png', '');
461461 }