From d69f69a9937bbaa38792ce4913319e57cf24e22c Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Wed, 18 Aug 2021 14:19:04 +0200 Subject: [PATCH] Fixed issue with unsubscribeOnDestroy --- .../src/app/shared/services/api/deltagare.service.ts | 2 +- apps/mina-sidor-fa/src/app/shared/services/api/user.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mina-sidor-fa/src/app/shared/services/api/deltagare.service.ts b/apps/mina-sidor-fa/src/app/shared/services/api/deltagare.service.ts index 5f84957..a534322 100644 --- a/apps/mina-sidor-fa/src/app/shared/services/api/deltagare.service.ts +++ b/apps/mina-sidor-fa/src/app/shared/services/api/deltagare.service.ts @@ -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), diff --git a/apps/mina-sidor-fa/src/app/shared/services/api/user.service.ts b/apps/mina-sidor-fa/src/app/shared/services/api/user.service.ts index 7ab588d..d546528 100644 --- a/apps/mina-sidor-fa/src/app/shared/services/api/user.service.ts +++ b/apps/mina-sidor-fa/src/app/shared/services/api/user.service.ts @@ -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 }); })