mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
fix(cp-frontend): don't fetchMoreMetrics if it's still loading
This commit is contained in:
parent
f5d9085531
commit
3c3f6f1c65
@ -25,7 +25,7 @@ export const withServiceMetricsPolling = ({
|
|||||||
const { loading, fetchMoreMetrics } = this.props;
|
const { loading, fetchMoreMetrics } = this.props;
|
||||||
const previousEnd = getPreviousEnd(this.props);
|
const previousEnd = getPreviousEnd(this.props);
|
||||||
|
|
||||||
if (previousEnd) {
|
if (!loading && previousEnd) {
|
||||||
fetchMoreMetrics(previousEnd);
|
fetchMoreMetrics(previousEnd);
|
||||||
}
|
}
|
||||||
}, pollingInterval); // TODO this is the polling interval - think about amount is the todo I guess...
|
}, pollingInterval); // TODO this is the polling interval - think about amount is the todo I guess...
|
||||||
|
Loading…
Reference in New Issue
Block a user