From 3c3f6f1c65bce71d33e8c21b53d8b2114d94c01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 6 Sep 2017 11:46:45 +0100 Subject: [PATCH] fix(cp-frontend): don't fetchMoreMetrics if it's still loading --- packages/cp-frontend/src/containers/metrics/metrics-data-hoc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cp-frontend/src/containers/metrics/metrics-data-hoc.js b/packages/cp-frontend/src/containers/metrics/metrics-data-hoc.js index b86fc2c3..42feaf2d 100644 --- a/packages/cp-frontend/src/containers/metrics/metrics-data-hoc.js +++ b/packages/cp-frontend/src/containers/metrics/metrics-data-hoc.js @@ -25,7 +25,7 @@ export const withServiceMetricsPolling = ({ const { loading, fetchMoreMetrics } = this.props; const previousEnd = getPreviousEnd(this.props); - if (previousEnd) { + if (!loading && previousEnd) { fetchMoreMetrics(previousEnd); } }, pollingInterval); // TODO this is the polling interval - think about amount is the todo I guess...