fixed bug: updating a user didn't refresh the user-table

This commit is contained in:
z1glr
2025-02-07 11:28:48 +00:00
parent 353f51f2ae
commit feb68ecd78
2 changed files with 2 additions and 3 deletions

View File

@@ -175,11 +175,11 @@ export default function Users() {
!isOpen ? setEditUser(undefined) : undefined
}
onSuccess={() => {
users.reload();
// clear the users first from the zustand
zustand.getState().patch({ users: undefined });
users.reload();
setEditUser(undefined);
}}
/>