Skip to content

Commit

Permalink
Fix new unit test failure #4
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Apr 23, 2019
1 parent 3c12f2f commit 443ab57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/frontend/packages/core/src/core/endpoints.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export class EndpointsService implements CanActivate {
);

this.disablePersistenceFeatures$ = this.store.select('auth').pipe(
map((auth) => auth.sessionData['plugin-config'] && auth.sessionData['plugin-config'].disablePersistenceFeatures === 'true')
map((auth) => auth.sessionData &&
auth.sessionData['plugin-config'] &&
auth.sessionData['plugin-config'].disablePersistenceFeatures === 'true'
)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { Store } from '@ngrx/store';

import { RouterNav } from '../../../../../../store/src/actions/router.actions';
import { AppState } from '../../../../../../store/src/app-state';

import { BASE_REDIRECT_QUERY } from '../../../../shared/components/stepper/stepper.types';
import { TileConfigManager } from '../../../../shared/components/tile/tile-selector.helpers';
import { ITileConfig, ITileData } from '../../../../shared/components/tile/tile-selector.types';
import { getEndpointTypes } from '../../endpoint-helpers';
import { BASE_REDIRECT_QUERY } from '../../../../shared/components/stepper/stepper.types';

interface ICreateEndpointTilesData extends ITileData {
type: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { ListConfig } from '../../../shared/components/list/list.component.types
useClass: EndpointsListConfigService,
}, EndpointListHelper]
})

export class EndpointsPageComponent implements OnDestroy, OnInit {
public canRegisterEndpoint = CurrentUserPermissions.ENDPOINT_REGISTER;
private healthCheckTimeout: number;
Expand Down

0 comments on commit 443ab57

Please sign in to comment.