Skip to content

Commit

Permalink
Merge pull request #22132 from Expensify/andrewli-workspaceinvitefix
Browse files Browse the repository at this point in the history
Fix invited user disappearing when searching for another user

(cherry picked from commit 9630ba6)
  • Loading branch information
Julesssss authored and OSBotify committed Jul 4, 2023
1 parent b2b0108 commit dfae923
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit dfae923

Please sign in to comment.