Skip to content

Commit

Permalink
Remove extra import ++ adjust selector
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Jun 24, 2020
1 parent 72713b3 commit e84dabb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const endpointPackageInfo = (state: Immutable<PolicyListState>) => 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
);

0 comments on commit e84dabb

Please sign in to comment.