Have issues assigning an Observable<EnumValue[]>
to Observable<EnumValue[]>
.
fetchContactLocationStates()
{
this.contactLocationStates$ = this.enumValues$
.pipe(takeUntil(this.destroy$))
.subscribe(x => x.filter((p) => p.CategoryId === EnumCategory.State));
}
Error:
Type 'Subscription' is missing the following properties from type 'Observable<EnumValue[]>' : source, operator, lift, subscribe, and 3 more.