Skip to content

Commit

Permalink
Merge pull request Expensify#22132 from Expensify/andrewli-workspacei…
Browse files Browse the repository at this point in the history
…nvitefix

Fix invited user disappearing when searching for another user
  • Loading branch information
Julesssss authored Jul 4, 2023
2 parents e23cd16 + 675add4 commit 9630ba6
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 @@ -178,10 +178,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 9630ba6

Please sign in to comment.