diff --git a/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts b/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts index 1c88ebd9..119f9031 100644 --- a/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts +++ b/src/app/components/arlas-wui-root/arlas-wui-root.component.spec.ts @@ -60,8 +60,8 @@ describe('ArlasWuiRootComponent', () => { mockSettingsService.getLinksSettings.and.returnValue(); mockSettingsService.getTicketingKey.and.returnValue(); - const mockContributorService = jasmine.createSpyObj('ContributorService', ['getChipSearchContributor']); - mockContributorService.getChipSearchContributor.and.returnValue(); + const mockContributorService = jasmine.createSpyObj('ContributorService', ['getSearchContributors']); + mockContributorService.getSearchContributors.and.returnValue(); await TestBed.configureTestingModule({ imports: [ diff --git a/src/app/components/arlas-wui-root/arlas-wui-root.component.ts b/src/app/components/arlas-wui-root/arlas-wui-root.component.ts index 1c33d11d..66be5f1d 100644 --- a/src/app/components/arlas-wui-root/arlas-wui-root.component.ts +++ b/src/app/components/arlas-wui-root/arlas-wui-root.component.ts @@ -379,7 +379,7 @@ export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy { */ private adjustComponentsSize() { setTimeout(() => { - if (this.timelineComponent.timelineHistogramComponent) { + if (!!this.timelineComponent && !!this.timelineComponent.timelineHistogramComponent) { this.timelineComponent.timelineHistogramComponent.resizeHistogram(); if (!!this.timelineComponent.detailedTimelineHistogramComponent) { this.timelineComponent.detailedTimelineHistogramComponent.resizeHistogram();