Fix navigation if new persona is on the first page

This commit is contained in:
Cohee 2024-01-31 11:23:57 +02:00
parent d800e19067
commit 33c452df3e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}