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) {
|
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),
|
||||||
|
|||||||
@@ -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 });
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user