Added check for nothing found (#3651)

This commit is contained in:
Erik Jan de Wit 2022-10-31 12:29:53 +01:00 committed by GitHub
parent dc76106b1d
commit 8d7d195b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ export const AuthorizationPolicies = ({ clientId }: PoliciesProps) => {
return await Promise.all([ return await Promise.all([
adminClient.clients.listPolicyProviders({ id: clientId }), adminClient.clients.listPolicyProviders({ id: clientId }),
...policies.map(async (policy) => { ...(policies || []).map(async (policy) => {
const dependentPolicies = const dependentPolicies =
await adminClient.clients.listDependentPolicies({ await adminClient.clients.listDependentPolicies({
id: clientId, id: clientId,