Are you struggling with assigning an Observable<EnumValue[]>
to another Observable<EnumValue[]>
?
fetchContactLocationStates()
{
this.contactLocationStates$ = this.enumValues$
.pipe(takeUntil(this.destroy$))
.subscribe(x => x.filter((p) => p.CategoryId === EnumCategory.State));
}
Error:
The type 'Subscription' is lacking properties like 'source', 'operator', 'lift', 'subscribe', and more from the type 'Observable<EnumValue[]>'.