Skip to content

Commit

Permalink
EPMRPP-90015 || Add possibility to configure autocomplete suggestions…
Browse files Browse the repository at this point in the history
… when inviting users (#3787)
  • Loading branch information
BlazarQSO authored Apr 1, 2024
1 parent 6203fe3 commit dd3555a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/controllers/appInfo/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const instanceTypeSelector = (state) =>
export const allowDeleteAccountSelector = (state) =>
environmentSelector(state)[ALLOW_DELETE_ACCOUNT] === 'true';
export const areUserSuggestionsAllowedSelector = (state) =>
environmentSelector(state)[USER_SUGGESTIONS] === 'true';
(environmentSelector(state)[USER_SUGGESTIONS] || 'true') === 'true';
export const baseEventParametersSelector = createSelector(
instanceIdSelector,
apiBuildVersionSelector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class InviteUserModal extends Component {
...data,
};

if (!(isProjectSelector || !areUserSuggestionsAllowed)) {
if (!(isProjectSelector || areUserSuggestionsAllowed)) {
const foundUsers = await fetch(URLS.projectUserSearchUser(selectedProject)(data.email));
const foundUser = foundUsers?.content.find(({ email }) => email === data.email);
if (foundUser) {
Expand Down Expand Up @@ -298,7 +298,7 @@ export class InviteUserModal extends Component {
>
<p className={cx('modal-description')}>{intl.formatMessage(messages.description)}</p>
<form className={cx('invite-form')}>
{isProjectSelector || !areUserSuggestionsAllowed ? (
{isProjectSelector || areUserSuggestionsAllowed ? (
<ModalField
label={intl.formatMessage(messages.loginOrEmailLabel)}
labelWidth={LABEL_WIDTH}
Expand Down

0 comments on commit dd3555a

Please sign in to comment.