Merge pull request #2014 from Wolfsblvt/fix-multi-char-import

Fix multi char import on import button click not importing tags
This commit is contained in:
Cohee 2024-04-05 02:00:29 +03:00 committed by GitHub
commit d27efb21d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -9939,14 +9939,14 @@ jQuery(async function () {
$('#character_import_file').click();
});
$('#character_import_file').on('change', function (e) {
$('#character_import_file').on('change', async function (e) {
$('#rm_info_avatar').html('');
if (!e.target.files.length) {
return;
}
for (const file of e.target.files) {
importCharacter(file);
await importCharacter(file);
}
});