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:"}
value={
<Fragment>
{status.endpoints?.map((e: any, i: number) => (
<LabelWithIcon
key={i}
icon={
e.status === "online" ? (
<EnabledIcon />
) : (
<DisabledIcon />
)
}
label={e.url}
/>
))}
{status.endpoints &&
status.endpoints.map((e: any, i: number) => (
<LabelWithIcon
key={i}
icon={
e.status === "online" ? (
<EnabledIcon />
) : (
<DisabledIcon />
)
}
label={e.url}
/>
))}
</Fragment>
}
/>