diff --git a/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/multi_metric/create_job/create_job_controller.js b/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/multi_metric/create_job/create_job_controller.js index 16087583828c8..fc83d8b1390f9 100644 --- a/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/multi_metric/create_job/create_job_controller.js +++ b/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/multi_metric/create_job/create_job_controller.js @@ -758,7 +758,7 @@ module preLoadJob($scope, appState); }); - const fetchSub$ = subscribeWithScope($scope, timefilter.getFetch$(), { + const fetchSub = subscribeWithScope($scope, timefilter.getFetch$(), { next: () => { $scope.loadVis(); if ($scope.formConfig.splitField !== undefined) { @@ -770,6 +770,6 @@ module $scope.$on('$destroy', () => { globalForceStop = true; angular.element(window).off('resize'); - fetchSub$.unsubscribe(); + fetchSub.unsubscribe(); }); }); diff --git a/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/population/create_job/create_job_controller.js b/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/population/create_job/create_job_controller.js index b61603ea42cd6..6f2770730db19 100644 --- a/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/population/create_job/create_job_controller.js +++ b/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/population/create_job/create_job_controller.js @@ -738,13 +738,13 @@ module preLoadJob($scope, appState); }); - const fetchSub$ = subscribeWithScope($scope, timefilter.getFetch$(), { + const fetchSub = subscribeWithScope($scope, timefilter.getFetch$(), { next: $scope.loadVis }); $scope.$on('$destroy', () => { globalForceStop = true; angular.element(window).off('resize'); - fetchSub$.unsubscribe(); + fetchSub.unsubscribe(); }); }); diff --git a/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/single_metric/create_job/create_job_controller.js b/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/single_metric/create_job/create_job_controller.js index ca3b5e5ee2761..7e1c77c8ee403 100644 --- a/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/single_metric/create_job/create_job_controller.js +++ b/x-pack/legacy/plugins/ml/public/jobs/new_job/simple/single_metric/create_job/create_job_controller.js @@ -622,13 +622,13 @@ module moveToAdvancedJobCreation(job); }; - const fetchSub$ = subscribeWithScope($scope, timefilter.getFetch$(), { + const fetchSub = subscribeWithScope($scope, timefilter.getFetch$(), { next: $scope.loadVis }); $scope.$on('$destroy', () => { globalForceStop = true; - fetchSub$.unsubscribe(); + fetchSub.unsubscribe(); }); $scope.$evalAsync(() => {