+
+ this.producers$= this.eiProducersDataSource.getProducers();
+ this.filteredProducers$ = defer(() => this.formGroup.get("filter")
+ .valueChanges.pipe(
+ startWith(""),
+ withLatestFrom(this.producers$),
+ map(([val, producers]) =>
+ !val ? producers : producers.filter((x) =>
+ x.ei_producer_id.toLowerCase().includes(val))))
+ );
+