[7.x] [ML] Fixing jobs and transforms list auto refresh (#44231) (#44372)

This commit is contained in:
James Gowdy 2019-08-29 13:48:10 +01:00 committed by GitHub
parent 32a9fcd163
commit 909dd21e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -66,9 +66,6 @@ export const useRefreshInterval = (
}
function clearRefreshInterval() {
if (refreshIntervalSubscription) {
refreshIntervalSubscription.unsubscribe();
}
setBlockRefresh(true);
if (transformRefreshInterval !== null) {
window.clearInterval(transformRefreshInterval);

View file

@ -124,7 +124,7 @@ export class JobsListView extends Component {
initAutoRefreshUpdate() {
// update the interval if it changes
this.refreshIntervalSubscription = timefilter.getRefreshIntervalUpdate$().subscribe({
next: this.setAutoRefresh
next: () => this.setAutoRefresh()
});
}