diff --git a/apps/console/src/features/roles/components/edit-role/edit-role.tsx b/apps/console/src/features/roles/components/edit-role/edit-role.tsx index 026a9c6be78..b8e36016b1a 100644 --- a/apps/console/src/features/roles/components/edit-role/edit-role.tsx +++ b/apps/console/src/features/roles/components/edit-role/edit-role.tsx @@ -150,7 +150,7 @@ export const EditRole: FunctionComponent = (props: EditRoleProps) ) }, // Hide connected apps tab if the audience is application. - roleObject?.audience.type === RoleAudienceTypes.ORGANIZATION.toLocaleLowerCase() + roleObject?.audience?.type === RoleAudienceTypes.ORGANIZATION.toLocaleLowerCase() ? { menuItem: t("console:manage.features.roles.edit.menuItems.connectedApps"), render: () => (