Fixed issue with unsubscribeOnDestroy
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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 });
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user