diff --git a/src/views/identity/administration/OffboardingWizard.jsx b/src/views/identity/administration/OffboardingWizard.jsx index 8a5bc168ce97..644bbc6c3a4b 100644 --- a/src/views/identity/administration/OffboardingWizard.jsx +++ b/src/views/identity/administration/OffboardingWizard.jsx @@ -15,7 +15,7 @@ import { } from 'src/components/forms' import { TenantSelector } from 'src/components/utilities' import { useListUsersQuery } from 'src/store/api/users' -import { useLazyGenericPostRequestQuery } from 'src/store/api/app' +import { useGenericGetRequestQuery, useLazyGenericPostRequestQuery } from 'src/store/api/app' import DatePicker from 'react-datepicker' import 'react-datepicker/dist/react-datepicker.css' @@ -48,6 +48,13 @@ const OffboardingWizard = () => { isFetching: usersIsFetching, error: usersError, } = useListUsersQuery({ tenantDomain }) + + const { + data: recipients = [], + isFetching: recipientsIsFetching, + error: recipientsError, + } = useGenericGetRequestQuery({ path: `/api/ListRecipients?tenantFilter=${tenantDomain}` }) + const currentSettings = useSelector((state) => state.app) const [genericPostRequest, postResults] = useLazyGenericPostRequestQuery() @@ -194,7 +201,7 @@ const OffboardingWizard = () => { /> x.mail) .map((user) => ({ value: user.mail,