Skip to content

Commit

Permalink
StartWith is not Deprecated ReactiveX/rxjs#4772
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyAx committed Sep 28, 2020
1 parent f2005b5 commit 0f0a24b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class EnumListInputComponent extends BaseInputComponent implements OnInit

this.enumValues = this.metadata.schema.enum;

// noinspection JSDeprecatedSymbols
this.options$ = this.searchControl.valueChanges
.pipe(
startWith(null),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class OntologyBaseComponent extends BaseInputComponent implements OnInit
super.ngOnInit();
const value: Ontology = this.metadataFormService.cleanFormData(this.control.value);
this.searchControl = this.createSearchControl(value);
// noinspection JSDeprecatedSymbols
this.options$ = this.searchControl.valueChanges
.pipe(
startWith(this.searchControl.value ? this.searchControl.value : ''),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class OntologyListInputComponent extends OntologyBaseComponent implements
const value = this.metadataFormService.cleanFormData(this.control.value);
this.value = this.metadataFormService.isEmpty(value) ? undefined : value;
this.searchControl = this.createSearchControl(value);
// noinspection JSDeprecatedSymbols
this.options$ = this.searchControl.valueChanges
.pipe(
startWith(this.searchControl.value ? this.searchControl.value : ''),
Expand Down

0 comments on commit 0f0a24b

Please sign in to comment.