Added check for nothing found (#3651)
This commit is contained in:
parent
dc76106b1d
commit
8d7d195b00
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue