diff --git a/src/components/UserForm/RolesSection.js b/src/components/UserForm/RolesSection.js index 39cba5897..1042564db 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} />