From 2e9c96d1c92b23075e9ab3a0e383be859ce257e1 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Fri, 5 Apr 2024 00:53:32 +0200 Subject: [PATCH] Fix multi char import on button - Fixes #1983 - importCharacter has to be async await to await user input on tag creation --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index a5207c022..23c2655c4 100644 --- a/public/script.js +++ b/public/script.js @@ -9907,14 +9907,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); } });