mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Bug fix: invite user form not reseting post submission (#921)
This PR fixes the issue when the form used to stay at stale state post submission of new user
This commit is contained in:
parent
53d6d5d73c
commit
c95620c538
1 changed files with 1 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ class ManageOrgUsers extends React.Component {
|
|||
.then(() => {
|
||||
toast.success('User has been created', { hideProgressBar: true, position: 'top-center' });
|
||||
this.fetchUsers();
|
||||
this.setState({ creatingUser: false, showNewUserForm: false });
|
||||
})
|
||||
.catch(({ error }) => {
|
||||
toast.error(error, { hideProgressBar: true, position: 'top-center' });
|
||||
|
|
|
|||
Loading…
Reference in a new issue