diff --git a/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.spec.ts b/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.spec.ts index 8bd2db266f..d275d72c95 100644 --- a/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.spec.ts @@ -37,7 +37,6 @@ import { NoopTranslateModule } from '@alfresco/adf-core'; class SearchFilterTabbedTestComponent {} describe('SearchFilterTabbedComponent', () => { - let searchFilterTabbedTestComponent: SearchFilterTabbedTestComponent; let searchFilterTabbedTestFixture: ComponentFixture; beforeEach(() => { @@ -45,7 +44,6 @@ describe('SearchFilterTabbedComponent', () => { imports: [SearchFilterTabbedTestComponent, NoopTranslateModule, ContentTestingModule] }); searchFilterTabbedTestFixture = TestBed.createComponent(SearchFilterTabbedTestComponent); - searchFilterTabbedTestComponent = searchFilterTabbedTestFixture.componentInstance; }); describe('ngOnInit', () => { diff --git a/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.ts b/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.ts index 6b596bc202..053449927e 100644 --- a/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.ts +++ b/lib/content-services/src/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.ts @@ -36,9 +36,9 @@ export class SearchFilterTabbedComponent implements OnInit, OnDestroy { selectedIndex: number = 0; @ViewChild(MatTabGroup) - private tabGroup: MatTabGroup; + private readonly tabGroup: MatTabGroup; - private intersectionObserver = new IntersectionObserver( + private readonly intersectionObserver = new IntersectionObserver( (entries) => { if (!entries[0].isIntersecting) { this.tabGroup.selectedIndex = (this.selectedIndex + 1) % this.tabsContents.length; @@ -52,7 +52,7 @@ export class SearchFilterTabbedComponent implements OnInit, OnDestroy { } ); - constructor(private element: ElementRef, private changeDetector: ChangeDetectorRef) {} + constructor(private readonly element: ElementRef, private readonly changeDetector: ChangeDetectorRef) {} ngOnInit(): void { this.intersectionObserver.observe(this.element.nativeElement);