fix(cp-frontend): handle inexistent healthy status
This commit is contained in:
parent
1384d5b50a
commit
d8ac561552
@ -36,9 +36,9 @@ export const InstancesTooltip = ({ instancesTooltip }) => {
|
|||||||
|
|
||||||
const message =
|
const message =
|
||||||
type === 'healthy'
|
type === 'healthy'
|
||||||
? healthMessages[instance.healthy.toLowerCase()]
|
? healthMessages[(instance.healthy || '').toLowerCase()]
|
||||||
: type === 'status'
|
: type === 'status'
|
||||||
? statusMessages[instance.status.toLowerCase()]
|
? statusMessages[(instance.status || '').toLowerCase()]
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user