Skip to content

Commit

Permalink
Update CippExchangeSettingsForm to include default option in user sel…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
kris6673 committed Jan 14, 2025
1 parent 17a0599 commit 8067ae6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/CippFormPages/CippExchangeSettingsForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,13 @@ const CippExchangeSettingsForm = (props) => {
label="Add Access"
name="calendar.UserToGetPermissions"
isFetching={isFetching || usersList.isFetching}
options={
usersList?.data?.Results?.map((user) => ({
options={[
{ value: "Default", label: "Default (Default)" },
...(usersList?.data?.Results?.map((user) => ({
value: user.userPrincipalName,
label: `${user.displayName} (${user.userPrincipalName})`,
})) || []
}
})) || []),
]}
multiple={false}
formControl={formControl}
/>
Expand Down

0 comments on commit 8067ae6

Please sign in to comment.