mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 11:35:37 +01:00
Fix navigation if new persona is on the first page
This commit is contained in:
parent
d800e19067
commit
33c452df3e
@ -5456,7 +5456,7 @@ export async function getUserAvatars(doRender = true, openPageAt = '') {
|
||||
const avatarIndex = entities.indexOf(openPageAt);
|
||||
const page = Math.floor(avatarIndex / perPage) + 1;
|
||||
|
||||
if (avatarIndex !== -1 && page > 1) {
|
||||
if (avatarIndex !== -1) {
|
||||
$('#persona_pagination_container').pagination('go', page);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user