diff --git a/src/ui/viewerStateController/viewerState.useEffect.ts b/src/ui/viewerStateController/viewerState.useEffect.ts index eae9876578ad7d2896b2e518b05627a942d9a312..f0027fa50fb050472211fdfca7a2c367e8a98991 100644 --- a/src/ui/viewerStateController/viewerState.useEffect.ts +++ b/src/ui/viewerStateController/viewerState.useEffect.ts @@ -1,4 +1,4 @@ -import { Injectable, OnDestroy, OnInit } from "@angular/core"; +import { Injectable, OnDestroy } from "@angular/core"; import { Actions, Effect, ofType } from "@ngrx/effects"; import { Action, select, Store } from "@ngrx/store"; import { Observable, Subscription, of, merge } from "rxjs"; @@ -16,7 +16,7 @@ import { viewerStateToggleRegionSelect, viewerStateSelectParcellationWithId, vie providedIn: 'root', }) -export class ViewerStateControllerUseEffect implements OnInit, OnDestroy { +export class ViewerStateControllerUseEffect implements OnDestroy { private subscriptions: Subscription[] = [] @@ -284,9 +284,6 @@ export class ViewerStateControllerUseEffect implements OnInit, OnDestroy { ) } - public ngOnInit() { - } - public ngOnDestroy() { while (this.subscriptions.length > 0) { this.subscriptions.pop().unsubscribe()