From d8ac5615526501f82f0172d44b786920b40e74b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Thu, 7 Sep 2017 17:51:59 +0100 Subject: [PATCH] fix(cp-frontend): handle inexistent healthy status --- packages/cp-frontend/src/containers/instances/tooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cp-frontend/src/containers/instances/tooltip.js b/packages/cp-frontend/src/containers/instances/tooltip.js index 728a2597..b629d920 100644 --- a/packages/cp-frontend/src/containers/instances/tooltip.js +++ b/packages/cp-frontend/src/containers/instances/tooltip.js @@ -36,9 +36,9 @@ export const InstancesTooltip = ({ instancesTooltip }) => { const message = type === 'healthy' - ? healthMessages[instance.healthy.toLowerCase()] + ? healthMessages[(instance.healthy || '').toLowerCase()] : type === 'status' - ? statusMessages[instance.status.toLowerCase()] + ? statusMessages[(instance.status || '').toLowerCase()] : ''; return (