Fix mapping over null reference for KMS endpoints (#3367)
This commit is contained in:
@@ -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>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user