Skip to content

Commit

Permalink
fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Jun 22, 2021
1 parent a4ddf6f commit aa34392
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ const EventsViewerComponent: React.FC<Props> = ({

const getManageTimeline = useMemo(() => timelineSelectors.getManageTimelineById(), []);
const unit = useMemo(() => (n: number) => i18n.UNIT(n), []);
const { queryFields, title = i18n.EVENTS } = useDeepEqualSelector((state) =>
getManageTimeline(state, id)
);
const { queryFields, title } = useDeepEqualSelector((state) => getManageTimeline(state, id));

const justTitle = useMemo(() => <TitleText data-test-subj="title">{title}</TitleText>, [title]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ export const addNewTimeline = ({
...timelineById,
[id]: {
id,
...timelineDefaults,
...(timeline ? timeline : {}),
...timelineDefaults,
...timelineProps,
dateRange,
savedObjectId: null,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/timelines/public/store/t_grid/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ export const getTGridManageDefaults = (id: string) => ({
id,
isLoading: false,
queryFields: [],
title: i18n.EVENTS,
title: '',
unit: (n: number) => i18n.UNIT(n),
});
1 change: 1 addition & 0 deletions x-pack/plugins/timelines/public/store/t_grid/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const setInitializeTgridSettings = ({
return {
...timelineById,
[id]: {
...tGridDefaults,
...timeline,
...getTGridManageDefaults(id),
...tGridSettingsProps,
Expand Down

0 comments on commit aa34392

Please sign in to comment.