From 8d7d195b00339ab270d3e9beac54d7d010d96590 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 31 Oct 2022 12:29:53 +0100 Subject: [PATCH] Added check for nothing found (#3651) --- apps/admin-ui/src/clients/authorization/Policies.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,