Skip to content

Commit 84b5f55

Browse files
Merge pull request KelvinTegelaar#3217 from kris6673/add-default-user-to-cal-perms
Update user selection in CippExchangeSettingsForm to include default option
2 parents 3c537ae + 8067ae6 commit 84b5f55

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/CippFormPages/CippExchangeSettingsForm.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,13 @@ const CippExchangeSettingsForm = (props) => {
244244
label="Add Access"
245245
name="calendar.UserToGetPermissions"
246246
isFetching={isFetching || usersList.isFetching}
247-
options={
248-
usersList?.data?.Results?.map((user) => ({
247+
options={[
248+
{ value: "Default", label: "Default (Default)" },
249+
...(usersList?.data?.Results?.map((user) => ({
249250
value: user.userPrincipalName,
250251
label: `${user.displayName} (${user.userPrincipalName})`,
251-
})) || []
252-
}
252+
})) || []),
253+
]}
253254
multiple={false}
254255
formControl={formControl}
255256
/>

0 commit comments

Comments
 (0)