Skip to content

Commit

Permalink
Fix map callback to cast to string.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Mar 30, 2021
1 parent 976d5ba commit 92cb351
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const FilterTermForm: FilterAggConfigTerm['aggTypeConfig']['FilterAggForm
}

setOptions(
response.aggregations.field_values.buckets.map((value) => ({ label: value.key_as_string }))
response.aggregations.field_values.buckets.map((value) => ({ label: value.key + '' }))
);
}, 600),
[selectedField]
Expand Down

0 comments on commit 92cb351

Please sign in to comment.