Fix new character highlight

This commit is contained in:
Cohee 2024-11-04 00:41:59 +02:00
parent 77be125a99
commit 266752bf93
1 changed files with 1 additions and 1 deletions

View File

@ -7158,7 +7158,7 @@ export function select_rm_info(type, charId, previousCharId = null) {
importFlashTimeout = setTimeout(function () {
if (type === 'char_import' || type === 'char_create') {
// Find the page at which the character is located
const avatarFileName = `${charId}.png`;
const avatarFileName = charId;
const charData = getEntitiesList({ doFilter: true });
const charIndex = charData.findIndex((x) => x?.item?.avatar?.startsWith(avatarFileName));