RED-3687 - removed on detach
This commit is contained in:
parent
3408655c82
commit
72cf70efbd
@ -14,8 +14,4 @@ export class ContextComponent<C> implements OnDetach {
|
|||||||
protected _mapKeysToObs<T>(keys: string[], observables: Observable<any>[]): T {
|
protected _mapKeysToObs<T>(keys: string[], observables: Observable<any>[]): T {
|
||||||
return keys.reduce((acc, key, index) => ({ ...acc, [key]: observables[index] }), {} as T);
|
return keys.reduce((acc, key, index) => ({ ...acc, [key]: observables[index] }), {} as T);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDetach() {
|
|
||||||
this.componentContext$ = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user