Fixed cannot read from undefined (#3647)

This commit is contained in:
Erik Jan de Wit 2022-10-26 11:44:38 +02:00 committed by GitHub
parent e463f99d40
commit 6af2a6ea17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ export const AuthorizationEvaluateResourcePolicies = ({
<Td>{t(`${outerPolicy.policy?.decisionStrategy?.toLowerCase()}`)}</Td>
<Td>
{outerPolicy.status === DecisionEffect.Permit
? resource.policies?.[rowIndex].scopes?.join(", ")
? resource.policies?.[rowIndex]?.scopes?.join(", ")
: "-"}
</Td>
<Td>