Fixed issue with unsubscribeOnDestroy

This commit is contained in:
Erik Tiekstra
2021-08-18 14:19:04 +02:00
parent 5bb81c3bd4
commit d69f69a993
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ export class DeltagareService extends UnsubscribeDirective {
constructor(private httpClient: HttpClient, private errorService: ErrorService) {
super();
this.unsubscribeOnDestroy(
super.unsubscribeOnDestroy(
this._currentDeltagareId$
.pipe(
filter(currentDeltagareId => !!currentDeltagareId),

View File

@@ -23,7 +23,7 @@ export class UserService extends UnsubscribeDirective {
constructor(private httpClient: HttpClient) {
super();
this.unsubscribeOnDestroy(
super.unsubscribeOnDestroy(
combineLatest([this._fetchUserInfo$(), this._fetchOrganizations$()]).subscribe(([userInfo, organizations]) => {
this._user$.next({ ...userInfo, organizations });
})