Skip to content

Commit

Permalink
[ML] Removing missed timefilter use (elastic#57373)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Feb 12, 2020
1 parent 5a93fdb commit f2641ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import React, { useEffect, FC } from 'react';
import { useObservable } from 'react-use';
import { i18n } from '@kbn/i18n';
import { timefilter } from 'ui/timefilter';
import { DEFAULT_REFRESH_INTERVAL_MS } from '../../../../common/constants/jobs_list';
import { mlTimefilterRefresh$ } from '../../services/timefilter_refresh_service';
import { useUrlState } from '../../util/url_state';
Expand All @@ -16,6 +15,7 @@ import { useResolver } from '../use_resolver';
import { basicResolvers } from '../resolvers';
import { JobsPage } from '../../jobs/jobs_list';
import { ANOMALY_DETECTION_BREADCRUMB, ML_BREADCRUMB } from '../breadcrumbs';
import { useMlKibana } from '../../contexts/kibana';

const breadcrumbs = [
ML_BREADCRUMB,
Expand All @@ -36,6 +36,8 @@ export const jobListRoute: MlRoute = {

const PageWrapper: FC<PageProps> = ({ deps }) => {
const { context } = useResolver(undefined, undefined, deps.config, basicResolvers(deps));
const { services } = useMlKibana();
const { timefilter } = services.data.query.timefilter;

const [globalState, setGlobalState] = useUrlState('_g');

Expand Down

0 comments on commit f2641ae

Please sign in to comment.