Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed May 5, 2020
1 parent daf6441 commit 0090d22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jest.mock('../../containers/timeline/all', () => {
};
});
jest.mock('./use_timeline_types', () => {
const originalModule = jest.requireActual('../../containers/timeline/all');
return {
useTimelineTypes: jest.fn().mockReturnValue({
timelineType: 'default',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import React, { useCallback, useMemo, useEffect } from 'react';
import { connect, ConnectedProps } from 'react-redux';
import { Dispatch } from 'redux';

import { TimelineType } from '../../../common/types/timeline';

import { useGetAllTimeline } from '../../containers/timeline/all';
import { SortFieldTimeline, Direction } from '../../graphql/types';
import { queryTimelineById, dispatchUpdateTimeline } from '../open_timeline/helpers';
Expand Down Expand Up @@ -76,7 +78,7 @@ const StatefulRecentTimelinesComponent = React.memo<Props>(
sortOrder: Direction.desc,
},
onlyUserFavorite: filterBy === 'favorites',
timelineType: null,
timelineType: TimelineType.default,
});
}, [filterBy]);

Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/siem/public/containers/timeline/all/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { getOr, noop } from 'lodash/fp';
import memoizeOne from 'memoize-one';
import { useCallback, useState, useRef, useEffect } from 'react';
import { useCallback, useState, useEffect } from 'react';
import { useDispatch } from 'react-redux';

import { OpenTimelineResult } from '../../../components/open_timeline/types';
Expand All @@ -17,7 +17,7 @@ import {
SortTimeline,
TimelineResult,
} from '../../../graphql/types';
import { inputsModel, inputsActions } from '../../../store/inputs';
import { inputsActions } from '../../../store/inputs';
import { useApolloClient } from '../../../utils/apollo_context';

import { allTimelinesQuery } from './index.gql_query';
Expand Down

0 comments on commit 0090d22

Please sign in to comment.