1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00:06 +02:00

fix(cp-frontend): handle inexistent healthy status

This commit is contained in:
Sérgio Ramos 2017-09-07 17:51:59 +01:00 committed by Sérgio Ramos
parent 1384d5b50a
commit d8ac561552

View File

@ -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 (