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) { constructor(private httpClient: HttpClient, private errorService: ErrorService) {
super(); super();
this.unsubscribeOnDestroy( super.unsubscribeOnDestroy(
this._currentDeltagareId$ this._currentDeltagareId$
.pipe( .pipe(
filter(currentDeltagareId => !!currentDeltagareId), filter(currentDeltagareId => !!currentDeltagareId),

View File

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