fixed bug: updating a user didn't refresh the user-table
This commit is contained in:
@@ -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);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user