Skip to content

Commit

Permalink
Cleaner dictionary handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueljh1 committed Oct 11, 2023
1 parent 095359d commit 8166fe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ function WorkspaceInvitePage(props) {
});

// Strip out dictionary keys and update arrays
setUsersToInvite(_.map(newUsersToInviteDict, (v) => v));
setPersonalDetails(_.map(newPersonalDetailsDict, (v) => v));
setSelectedOptions(_.map(newSelectedOptionsDict, (v) => v));
setUsersToInvite(_.values(newUsersToInviteDict));
setPersonalDetails(_.values(newPersonalDetailsDict));
setSelectedOptions(_.values(newSelectedOptionsDict));

// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to recalculate when selectedOptions change
}, [props.personalDetails, props.policyMembers, props.betas, searchTerm, excludedUsers]);
Expand Down

0 comments on commit 8166fe3

Please sign in to comment.