fixed bug: updating a user didn't refresh the user-table
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- readme text
|
- readme text
|
||||||
- changing user admin status doesn't refresh data
|
|
||||||
- add user/ event / etc. boxes don't clear after adding
|
- add user/ event / etc. boxes don't clear after adding
|
||||||
- check enter pressing on modals
|
- check enter pressing on modals
|
||||||
- add control-enter on event-description
|
- add control-enter on event-description
|
||||||
|
|||||||
@@ -175,11 +175,11 @@ export default function Users() {
|
|||||||
!isOpen ? setEditUser(undefined) : undefined
|
!isOpen ? setEditUser(undefined) : undefined
|
||||||
}
|
}
|
||||||
onSuccess={() => {
|
onSuccess={() => {
|
||||||
users.reload();
|
|
||||||
|
|
||||||
// clear the users first from the zustand
|
// clear the users first from the zustand
|
||||||
zustand.getState().patch({ users: undefined });
|
zustand.getState().patch({ users: undefined });
|
||||||
|
|
||||||
|
users.reload();
|
||||||
|
|
||||||
setEditUser(undefined);
|
setEditUser(undefined);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user