diff --git a/src/pages/workspace/WorkspaceInvitePage.js b/src/pages/workspace/WorkspaceInvitePage.js index 1092579f0bc5..5162c07b1343 100644 --- a/src/pages/workspace/WorkspaceInvitePage.js +++ b/src/pages/workspace/WorkspaceInvitePage.js @@ -179,10 +179,7 @@ class WorkspaceInvitePage extends React.Component { _.forEach(personalDetails, (detail) => (detailsMap[detail.login] = detail)); const selectedOptions = []; _.forEach(this.state.selectedOptions, (option) => { - if (!_.has(detailsMap, option.login)) { - return; - } - selectedOptions.push(detailsMap[option.login]); + selectedOptions.push(_.has(detailsMap, option.login) ? detailsMap[option.login] : option); }); this.setState({