Skip to content

Commit

Permalink
my best friend typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
peluja1012 committed Jul 14, 2020
1 parent 54628e6 commit 0aa27e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import {
getEntryListMock,
getEntryMatchMock,
getEntryMatchAnyMock,
getEntryNestedMock,
getEntriesArrayMock,
} from '../../../../../lists/common/schemas/types/entries.mock';
import { getCommentsArrayMock } from '../../../../../lists/common/schemas/types/comments.mock';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
exceptionListItemSchema,
UpdateExceptionListItemSchema,
ExceptionListType,
EntriesArray,
EntryNested,
} from '../../../lists_plugin_deps';
import { IFieldType, IIndexPattern } from '../../../../../../../src/plugins/data/common';
import { TimelineNonEcsData } from '../../../graphql/types';
Expand Down Expand Up @@ -392,7 +392,7 @@ export const prepareExceptionItemsForBulkClose = (
): Array<ExceptionListItemSchema | CreateExceptionListItemSchema> => {
return exceptionItems.map((item: ExceptionListItemSchema | CreateExceptionListItemSchema) => {
if (item.entries !== undefined) {
const newEntries = item.entries.map((itemEntry: EntriesArray[0]) => {
const newEntries = item.entries.map((itemEntry: Entry | EntryNested) => {
return {
...itemEntry,
field: itemEntry.field.startsWith('event.')
Expand Down

0 comments on commit 0aa27e1

Please sign in to comment.