fix(ui) - user role flag on create (#1122)

This commit is contained in:
Shekar Siri 2023-04-06 16:50:44 +02:00 committed by GitHub
parent 865aaaa488
commit 67b6cb1116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ export default class UserStore {
const newUser = new User().fromJson(response);
if (wasCreating) {
this.modifiedCount -= 1;
this.list.push(new User().fromJson(newUser));
this.list.push(newUser);
toast.success('User created successfully');
} else {
this.updateUser(newUser);