diff --git a/packages/cp-frontend/src/components/services/list-item.js b/packages/cp-frontend/src/components/services/list-item.js index ab27c929..6fccbbbc 100644 --- a/packages/cp-frontend/src/components/services/list-item.js +++ b/packages/cp-frontend/src/components/services/list-item.js @@ -179,7 +179,7 @@ const ServiceListItem = ({ ); } - const metrics = !children.length + const graphs = !children.length && Object.keys(service.metrics).length ? Object.keys(service.metrics).map(key => ( @@ -193,6 +193,10 @@ const ServiceListItem = ({ )) : null; + const metrics = graphs ? ( + {graphs} + ) : null; + const view = children.length ? ( {childrenItems} ) : ( @@ -202,7 +206,7 @@ const ServiceListItem = ({ {healthyInfo} - {metrics} + {metrics} );