Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmbabhazi committed Jan 15, 2025
1 parent c0396ff commit 69e9f8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h5 class="font-serif m-0">Terms</h5>
<div class="label-filter">
<div class="label-filter__select">
<select id="labelFilter" class="form-control" [formControl]="labelFilterControl">
<option value="" disabled selected>Filter by Label</option>
<option value="" selected>Filter by Label</option>
<option *ngFor="let label of projectLabels$ | async" [value]="label.id">
{{ label.value }}
</option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ export class TermsListComponent implements OnInit, OnDestroy {
this.filteredTerms$ = this.labelFilterControl.valueChanges.pipe(
startWith(''),
debounceTime(300),
switchMap(
(selectedLabel: string) =>
selectedLabel ? this.projectTermsService.fetchFilteredTerms(project.id, selectedLabel) : this.projectTerms$, // Retourner tous les termes si aucun label n'est sélectionné
switchMap((selectedLabel: string) =>
selectedLabel ? this.projectTermsService.fetchFilteredTerms(project.id, selectedLabel) : this.projectTerms$,
),
);
}
Expand Down

0 comments on commit 69e9f8d

Please sign in to comment.