mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +00:00
refac
This commit is contained in:
parent
26e9cd0b4b
commit
abdde10b74
1 changed files with 6 additions and 0 deletions
|
|
@ -78,6 +78,12 @@
|
||||||
toast.error(`${error}`);
|
toast.error(`${error}`);
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// if the user is deleted and the current page has only one user, go back to the previous page
|
||||||
|
if (users.length === 1 && page > 1) {
|
||||||
|
page -= 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
getUserList();
|
getUserList();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue