Skip to content

Commit

Permalink
Merge branch 'fix/EPMRPP-96556-new-user-displayed-invalid-in-recipien…
Browse files Browse the repository at this point in the history
…t-field' of https://github.com/reportportal/service-ui into fix/EPMRPP-96556-new-user-displayed-invalid-in-recipient-field
  • Loading branch information
iso9000t committed Nov 4, 2024
2 parents 5c1e724 + bb444ea commit 94930e2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { AsyncAutocomplete } from 'components/inputs/autocompletes/asyncAutocomp
import { InputDropdown } from 'components/inputs/inputDropdown';
import { MEMBERS_PAGE_EVENTS } from 'components/main/analytics/events';
import { InputUserSearch, makeOptions } from 'components/inputs/inputUserSearch';
import { fetchProjectAction } from 'controllers/project/actionCreators';
import styles from './inviteUserModal.scss';

const cx = classNames.bind(styles);
Expand Down Expand Up @@ -103,6 +104,7 @@ const inviteFormSelector = formValueSelector('inviteUserForm');
showScreenLockAction,
hideScreenLockAction,
showNotification,
fetchProjectAction,
},
)
@reduxForm({
Expand Down Expand Up @@ -131,6 +133,7 @@ export class InviteUserModal extends Component {
isAdmin: PropTypes.bool,
dirty: PropTypes.bool,
areUserSuggestionsAllowed: PropTypes.bool.isRequired,
fetchProjectAction: PropTypes.func.isRequired,
};

static defaultProps = {
Expand Down Expand Up @@ -208,6 +211,7 @@ export class InviteUserModal extends Component {
type: NOTIFICATION_TYPES.SUCCESS,
});
onInvite();
this.props.fetchProjectAction(selectedProject, false);
})
.catch((err) => {
this.props.showNotification({
Expand Down

0 comments on commit 94930e2

Please sign in to comment.