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

@@ -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

View File

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