Skip to content

Commit

Permalink
Remove leftover type
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Beltran committed Mar 7, 2022
1 parent 5bf0511 commit 4c7c45b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions x-pack/plugins/timelines/public/store/t_grid/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@
*/
import { getOr } from 'lodash/fp';
import { createSelector } from 'reselect';
import { TGridModel, State } from '.';
import { TGridModel } from '.';
import { tGridDefaults, getTGridManageDefaults } from './defaults';

interface TGridById {
[id: string]: TGridModel;
}

const getDefaultTgrid = (id: string) => ({ ...tGridDefaults, ...getTGridManageDefaults(id) });

export const standaloneTGridById = (state: State): TGridById => state.timelineById;

export const selectTGridById = (state: unknown, timelineId: string): TGridModel => {
return getOr(
getOr(getDefaultTgrid(timelineId), ['timelineById', timelineId], state),
Expand Down

0 comments on commit 4c7c45b

Please sign in to comment.