[ML] Removes deprecated $scope.indexPatterns. (#30494)

This was missed during the recent migrations to React of Anomaly Explorer in #28750. It removes the now unnecessary `$scope.indexPatterns`.
This commit is contained in:
Walter Rafelsberger 2019-02-08 15:36:05 +01:00 committed by GitHub
parent e312daecfc
commit 3e648084bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,6 @@ uiRoutes
});
import { uiModules } from 'ui/modules';
import { getFromSavedObject } from 'ui/index_patterns/static_utils';
const module = uiModules.get('apps/ml');
@ -75,7 +74,6 @@ module.controller('MlExplorerController', function (
// $scope should only contain what's actually still necessary for the angular part.
// For the moment that's the job selector and the (hidden) filter bar.
$scope.jobs = [];
$scope.indexPatterns = $route.current ? $route.current.locals.indexPatterns.map(getFromSavedObject) : [];
timefilter.enableTimeRangeSelector();
timefilter.enableAutoRefreshSelector();