From 8067ae627bcc7a5319d8f65ea590933b5b37e990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20Kj=C3=A6rg=C3=A5rd?= Date: Tue, 14 Jan 2025 12:25:32 +0100 Subject: [PATCH] Update CippExchangeSettingsForm to include default option in user selection --- .../CippFormPages/CippExchangeSettingsForm.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/CippFormPages/CippExchangeSettingsForm.jsx b/src/components/CippFormPages/CippExchangeSettingsForm.jsx index f528e4a45e94..e46b0ab157f6 100644 --- a/src/components/CippFormPages/CippExchangeSettingsForm.jsx +++ b/src/components/CippFormPages/CippExchangeSettingsForm.jsx @@ -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} />