This commit is contained in:
Timothy Jaeryang Baek 2025-05-05 16:12:41 +04:00
parent 26e9cd0b4b
commit abdde10b74

View File

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