Skip to content

Commit be7f6ba

Browse files
Merge pull request #4540 from guardian/jsh/fix-filter-fields
Fix an issue where typing e.g. -sport{Enter} would not-dechip the input to produce the plain query -sport
2 parents 3736379 + d1a3401 commit be7f6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kahuna/public/js/search/structured-query/structured-query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ grStructuredQuery.controller("grStructuredQueryCtrl", [
5151
.debounce(500);
5252

5353
ctrl.getSuggestions = querySuggestions.getChipSuggestions;
54-
ctrl.filterFields = querySuggestions.filterFields;
54+
ctrl.filterFields = querySuggestions.typeaheadFields.map(_ => _.fieldName);
5555

5656
function valOrUndefined(str) {
5757
// Watch out for `false`, but we know it's a string here..

0 commit comments

Comments
 (0)