diff --git a/x-pack/plugins/ml/public/explorer/explorer_controller.js b/x-pack/plugins/ml/public/explorer/explorer_controller.js index 6014fb7698bad5..991e6707b61529 100644 --- a/x-pack/plugins/ml/public/explorer/explorer_controller.js +++ b/x-pack/plugins/ml/public/explorer/explorer_controller.js @@ -502,8 +502,6 @@ module.controller('MlExplorerController', function ( $scope.viewByLoadedForTimeFormatted = moment(timerange.earliestMs).format('MMMM Do YYYY, HH:mm'); } - // pass influencers on to loadDataForCharts(), - // it will take care of calling loadTopInfluencers() in this case. mlExplorerDashboardService.swimlaneDataChange.changed(mapScopeToSwimlaneProps(SWIMLANE_TYPE.OVERALL)); mlExplorerDashboardService.swimlaneDataChange.changed(mapScopeToSwimlaneProps(SWIMLANE_TYPE.VIEW_BY)); @@ -511,6 +509,8 @@ module.controller('MlExplorerController', function ( loadTopInfluencers(jobIds, timerange.earliestMs, timerange.latestMs); loadDataForCharts(jobIds, timerange.earliestMs, timerange.latestMs); } else { + // pass influencers on to loadDataForCharts(), + // it will take care of calling loadTopInfluencers() in this case. loadDataForCharts(jobIds, timerange.earliestMs, timerange.latestMs, influencers); } loadAnomaliesTableData(); diff --git a/x-pack/plugins/ml/public/explorer/explorer_swimlane_directive.js b/x-pack/plugins/ml/public/explorer/explorer_swimlane_directive.js index a777785b49fd85..8ec8b19a52ce2f 100644 --- a/x-pack/plugins/ml/public/explorer/explorer_swimlane_directive.js +++ b/x-pack/plugins/ml/public/explorer/explorer_swimlane_directive.js @@ -18,13 +18,15 @@ import { ExplorerSwimlane } from './explorer_swimlane'; import { uiModules } from 'ui/modules'; const module = uiModules.get('apps/ml'); -module.directive('mlExplorerSwimlane', function ($compile, Private, mlExplorerDashboardService) { +module.directive('mlExplorerSwimlane', function (mlExplorerDashboardService) { function link(scope, element) { function swimlaneDataChangeListener(props) { if ( props.swimlaneType !== scope.swimlaneType || - props.swimlaneData === undefined + props.swimlaneData === undefined || + props.startTime === undefined || + props.endTime === undefined ) { return; }