diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/index.test.ts b/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/index.test.ts index 91735d3a1a1d6..f454061055e96 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/index.test.ts +++ b/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/index.test.ts @@ -28,7 +28,6 @@ import { MiddlewareActionSpyHelper, } from '../../../../../common/store/test_utils'; import { getPoliciesPath } from '../../../../common/routing'; -import { http } from '../../../../../../../ml/public/application/services/http_service'; describe('policy list store concerns', () => { const policyListPathUrl = getPoliciesPath(); diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/selectors.ts b/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/selectors.ts index ae4e2692a1e0f..ce57d238d7581 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/selectors.ts +++ b/x-pack/plugins/security_solution/public/management/pages/policy/store/policy_list/selectors.ts @@ -94,6 +94,7 @@ export const endpointPackageInfo = (state: Immutable) => state. /** * Returns the version number for the endpoint package. */ -export const endpointPackageVersion = createSelector(endpointPackageInfo, (info) => - info ? info.version : undefined +export const endpointPackageVersion = createSelector( + endpointPackageInfo, + (info) => info?.version ?? undefined );