Skip to content

Commit 8067ae6

Browse files
committed
Update CippExchangeSettingsForm to include default option in user selection
1 parent 17a0599 commit 8067ae6

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)