From 6af2a6ea1787fc51111bc7884fd4e9d125e61126 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Wed, 26 Oct 2022 11:44:38 +0200 Subject: [PATCH] Fixed cannot read from undefined (#3647) --- .../authorization/AuthorizationEvaluateResourcePolicies.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/admin-ui/src/clients/authorization/AuthorizationEvaluateResourcePolicies.tsx b/apps/admin-ui/src/clients/authorization/AuthorizationEvaluateResourcePolicies.tsx index dfa85f9ed5..eda33ddb01 100644 --- a/apps/admin-ui/src/clients/authorization/AuthorizationEvaluateResourcePolicies.tsx +++ b/apps/admin-ui/src/clients/authorization/AuthorizationEvaluateResourcePolicies.tsx @@ -64,7 +64,7 @@ export const AuthorizationEvaluateResourcePolicies = ({ {t(`${outerPolicy.policy?.decisionStrategy?.toLowerCase()}`)} {outerPolicy.status === DecisionEffect.Permit - ? resource.policies?.[rowIndex].scopes?.join(", ") + ? resource.policies?.[rowIndex]?.scopes?.join(", ") : "-"}