Skip to content

Commit

Permalink
[ML] Removing missed timefilter use
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Feb 11, 2020
1 parent b133357 commit 5d883a1
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 5d883a1

Please sign in to comment.