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…
Reference in New Issue