diff --git a/src/components/UserForm/RolesSection.js b/src/components/UserForm/RolesSection.js index f4d99291..d906d80a 100644 --- a/src/components/UserForm/RolesSection.js +++ b/src/components/UserForm/RolesSection.js @@ -19,7 +19,7 @@ const RolesSection = React.memo( rightHeader={i18n.t('User roles this user is assigned')} options={userRoleOptions} initialValue={ - user?.userCredentials.userRoles.map(({ id }) => id) || [] + user?.userCredentials?.userRoles?.map(({ id }) => id) || [] } validate={hasSelectionValidator} />