diff --git a/apps/admin-ui/src/clients/authorization/Policies.tsx b/apps/admin-ui/src/clients/authorization/Policies.tsx index f14a8b9c91..816dbfc6e5 100644 --- a/apps/admin-ui/src/clients/authorization/Policies.tsx +++ b/apps/admin-ui/src/clients/authorization/Policies.tsx @@ -81,7 +81,7 @@ export const AuthorizationPolicies = ({ clientId }: PoliciesProps) => { return await Promise.all([ adminClient.clients.listPolicyProviders({ id: clientId }), - ...policies.map(async (policy) => { + ...(policies || []).map(async (policy) => { const dependentPolicies = await adminClient.clients.listDependentPolicies({ id: clientId,