Skip to content

Commit

Permalink
Merge pull request #54237 from huult/53899-unselected-invited-user-on…
Browse files Browse the repository at this point in the history
…-return-online

Fix issue where selected invited new user becomes unselected when ret…
  • Loading branch information
NikkiWines authored Dec 18, 2024
2 parents 5ebb9db + 5e56ce7 commit b5773ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function WorkspaceMembersPage({personalDetails, route, policy, currentUserPerson
const currentPersonalDetails = filterPersonalDetails(policy?.employeeList ?? {}, personalDetails);
// We need to filter the previous selected employees by the new personal details, since unknown/new user id's change when transitioning from offline to online
const prevSelectedElements = prevSelected.map((id) => {
const prevItem = prevPersonalDetails?.id;
const prevItem = prevPersonalDetails?.[id];
const res = Object.values(currentPersonalDetails).find((item) => prevItem?.login === item?.login);
return res?.accountID ?? id;
});
Expand Down

0 comments on commit b5773ad

Please sign in to comment.