mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix new character highlight
This commit is contained in:
@ -7185,7 +7185,7 @@ export function select_rm_info(type, charId, previousCharId = null) {
|
|||||||
importFlashTimeout = setTimeout(function () {
|
importFlashTimeout = setTimeout(function () {
|
||||||
if (type === 'char_import' || type === 'char_create') {
|
if (type === 'char_import' || type === 'char_create') {
|
||||||
// Find the page at which the character is located
|
// Find the page at which the character is located
|
||||||
const avatarFileName = `${charId}.png`;
|
const avatarFileName = charId;
|
||||||
const charData = getEntitiesList({ doFilter: true });
|
const charData = getEntitiesList({ doFilter: true });
|
||||||
const charIndex = charData.findIndex((x) => x?.item?.avatar?.startsWith(avatarFileName));
|
const charIndex = charData.findIndex((x) => x?.item?.avatar?.startsWith(avatarFileName));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user