diff --git a/x-pack/plugins/endpoint/public/embeddables/resolver/store/middleware.ts b/x-pack/plugins/endpoint/public/embeddables/resolver/store/middleware.ts index c7d8deda82273..a42b43ef5c40b 100644 --- a/x-pack/plugins/endpoint/public/embeddables/resolver/store/middleware.ts +++ b/x-pack/plugins/endpoint/public/embeddables/resolver/store/middleware.ts @@ -122,7 +122,7 @@ export const resolverMiddlewareFactory: MiddlewareFactory = context => { if (apiResults instanceof Error) { api.dispatch({ type: 'serverFailedToReturnRelatedEventData', - payload: [results[0]], + payload: results[0], }); continue; } diff --git a/x-pack/plugins/endpoint/public/embeddables/resolver/types.ts b/x-pack/plugins/endpoint/public/embeddables/resolver/types.ts index a87003c2330b9..071c35ea064cf 100644 --- a/x-pack/plugins/endpoint/public/embeddables/resolver/types.ts +++ b/x-pack/plugins/endpoint/public/embeddables/resolver/types.ts @@ -9,6 +9,7 @@ import { Store } from 'redux'; import { ResolverAction } from './store/actions'; export { ResolverAction } from './store/actions'; import { ResolverEvent } from '../../../common/types'; +import { eventType } from '../../../common/models/event'; /** * Redux state for the Resolver feature. Properties on this interface are populated via multiple reducers using redux's `combineReducers`. @@ -137,7 +138,7 @@ export type CameraState = { export interface RelatedEventDataEntry { relatedEvents: Array<{ relatedEvent: ResolverEvent; - relatedEventType: string; + relatedEventType: ReturnType; }>; }