Fix mapping over null reference for KMS endpoints (#3367)

This commit is contained in:
Javier Adriel
2024-06-03 15:03:35 -06:00
committed by GitHub
parent 6a591c1bcd
commit 271560894a

View File

@@ -203,19 +203,20 @@ const Status = () => {
label={"Key Management Service Endpoints:"} label={"Key Management Service Endpoints:"}
value={ value={
<Fragment> <Fragment>
{status.endpoints?.map((e: any, i: number) => ( {status.endpoints &&
<LabelWithIcon status.endpoints.map((e: any, i: number) => (
key={i} <LabelWithIcon
icon={ key={i}
e.status === "online" ? ( icon={
<EnabledIcon /> e.status === "online" ? (
) : ( <EnabledIcon />
<DisabledIcon /> ) : (
) <DisabledIcon />
} )
label={e.url} }
/> label={e.url}
))} />
))}
</Fragment> </Fragment>
} }
/> />