diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts index c706a4b9e92aa..62a2d9e3205c2 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/action.ts @@ -41,22 +41,10 @@ interface ServerFailedToReturnHostPolicyResponse { payload: ServerApiError; } -interface ServerReturnedEndpointPackageVersion { - type: 'serverReturnedEndpointPackageVersion'; - payload: string; -} - -interface ServerFailedToReturnEndpointPackageVersion { - type: 'serverFailedToReturnEndpointPackageVersion'; - payload: ServerApiError; -} - export type HostAction = | ServerReturnedHostList | ServerFailedToReturnHostList | ServerReturnedHostDetails | ServerFailedToReturnHostDetails | ServerReturnedHostPolicyResponse - | ServerFailedToReturnHostPolicyResponse - | ServerReturnedEndpointPackageVersion - | ServerFailedToReturnEndpointPackageVersion; + | ServerFailedToReturnHostPolicyResponse; diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/reducer.ts b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/reducer.ts index 38d4f19ba9238..23682544ec423 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/reducer.ts +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/reducer.ts @@ -23,8 +23,6 @@ export const initialHostListState: Immutable = { policyResponse: undefined, policyResponseLoading: false, policyResponseError: undefined, - endpointPackageVersion: undefined, - endpointPackageVersionError: undefined, location: undefined, }; @@ -80,18 +78,6 @@ export const hostListReducer: ImmutableReducer = ( policyResponseError: action.payload, policyResponseLoading: false, }; - } else if (action.type === 'serverReturnedEndpointPackageVersion') { - return { - ...state, - endpointPackageVersion: action.payload, - endpointPackageVersionError: undefined, - }; - } else if (action.type === 'serverFailedToReturnEndpointPackageVersion') { - return { - ...state, - endpointPackageError: action.payload, - endpointPackageVersion: undefined, - }; } else if (action.type === 'userChangedUrl') { const newState: Immutable = { ...state, @@ -111,7 +97,6 @@ export const hostListReducer: ImmutableReducer = ( loading: true, error: undefined, detailsError: undefined, - endpointVersionError: undefined, }; } } else if (isCurrentlyOnDetailsPage) { @@ -125,7 +110,6 @@ export const hostListReducer: ImmutableReducer = ( error: undefined, detailsError: undefined, policyResponseError: undefined, - endpointVersionError: undefined, }; } else { // if previous page was not host list or host details, load both list and details @@ -138,7 +122,6 @@ export const hostListReducer: ImmutableReducer = ( error: undefined, detailsError: undefined, policyResponseError: undefined, - endpointVersionError: undefined, }; } } @@ -149,7 +132,6 @@ export const hostListReducer: ImmutableReducer = ( error: undefined, detailsError: undefined, policyResponseError: undefined, - endpointVersionError: undefined, }; } return state; diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts index 89412d6134c79..4881342c06573 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/types.ts @@ -38,10 +38,6 @@ export interface HostState { policyResponseLoading: boolean; /** api error from retrieving the policy response */ policyResponseError?: ServerApiError; - /** latest endpoint package version */ - endpointPackageVersion?: string; - /** api error from retrieving endpoint package version */ - endpointPackageVersionError?: ServerApiError; /** current location info */ location?: Immutable; }