diff --git a/packages/cp-frontend/src/containers/services/list.js b/packages/cp-frontend/src/containers/services/list.js index 64cac356..c72e9ccd 100644 --- a/packages/cp-frontend/src/containers/services/list.js +++ b/packages/cp-frontend/src/containers/services/list.js @@ -179,18 +179,12 @@ export default compose( }), withServiceMetricsPolling({ pollingInterval: 1000, - getPreviousEnd: ({ loading, error, services = [] }) => { + getPreviousEnd: ({ loading, services = [] }) => { if (loading) { return false; } - const _services = forceArray(services); - - if (!_services.length) { - return false; - } - - const previousEnd = _services + const previousEnd = forceArray(services) .map(service => get(service, 'instances[0].metrics[0].end', null)) .filter(Boolean) .shift();