diff --git a/src/clients/authorization/Scopes.tsx b/src/clients/authorization/Scopes.tsx index 856a7d2c99..849a7c82cd 100644 --- a/src/clients/authorization/Scopes.tsx +++ b/src/clients/authorization/Scopes.tsx @@ -100,25 +100,23 @@ export const AuthorizationScopes = ({ clientId }: ScopesProps) => { row, }: { row: ExpandableScopeRepresentation; - }) => { - return ( - <> - {row.resources?.[0]?.name} - - ); - }; + }) => ( + <> + {row.resources?.[0]?.name ? row.resources[0]?.name : "—"}{" "} + + + ); const PermissionsRenderer = ({ row, }: { row: ExpandableScopeRepresentation; - }) => { - return ( - <> - {row.permissions?.[0]?.name} - - ); - }; + }) => ( + <> + {row.permissions?.[0]?.name ? row.permissions[0]?.name : "—"}{" "} + + + ); if (!scopes) { return ; @@ -169,7 +167,7 @@ export const AuthorizationScopes = ({ clientId }: ScopesProps) => { {t("common:name")} {t("resources")} - {t("permissions")} + {t("common:permissions")}