Skip to content

Commit cdac930

Browse files
committed
refactor(filtered-search): drop unnecesary value assingment
1 parent bcefc39 commit cdac930

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/element-ng/filtered-search/values/typeahead/si-filtered-search-typeahead.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ export class SiFilteredSearchTypeaheadComponent
133133
// We should consider dropping this, but there is currently a unit test checking this behavior.
134134
const optionValue = this.optionValue();
135135
if (optionValue) {
136-
// TODO: The last ?? optionValue.label is non-sense, but we have a unit test checking this behavior.
137-
this.criterionValue().value = optionValue.value ?? optionValue.label;
136+
this.criterionValue().value = optionValue.value;
138137
}
139138
}
140139

0 commit comments

Comments
 (0)