mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix navigation if new persona is on the first page
This commit is contained in:
@ -5456,7 +5456,7 @@ export async function getUserAvatars(doRender = true, openPageAt = '') {
|
|||||||
const avatarIndex = entities.indexOf(openPageAt);
|
const avatarIndex = entities.indexOf(openPageAt);
|
||||||
const page = Math.floor(avatarIndex / perPage) + 1;
|
const page = Math.floor(avatarIndex / perPage) + 1;
|
||||||
|
|
||||||
if (avatarIndex !== -1 && page > 1) {
|
if (avatarIndex !== -1) {
|
||||||
$('#persona_pagination_container').pagination('go', page);
|
$('#persona_pagination_container').pagination('go', page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user