Fix tags import after merge

This commit is contained in:
Cohee
2023-06-29 12:27:23 +03:00
parent bc7d7ee3ff
commit e9466916da
2 changed files with 7 additions and 6 deletions

View File

@ -6336,7 +6336,7 @@ function importCharacter(file) {
await getCharacters();
select_rm_info(`char_import`, data.file_name, oldSelectedChar);
if(power_user.import_card_tags){
if (power_user.import_card_tags) {
let currentContext = getContext();
let avatarFileName = `${data.file_name}.png`;
let importedCharacter = currentContext.characters.find(character => character.avatar === avatarFileName);