Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#3217 from kris6673/add-default-user…
Browse files Browse the repository at this point in the history
…-to-cal-perms

Update user selection in CippExchangeSettingsForm to include default option
  • Loading branch information
KelvinTegelaar authored Jan 14, 2025
2 parents 3c537ae + 8067ae6 commit 84b5f55
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 84b5f55

Please sign in to comment.