Skip to content

Commit

Permalink
Top Hit should support all field types on the metric vis
Browse files Browse the repository at this point in the history
  • Loading branch information
scampi committed Oct 17, 2016
1 parent 53469d5 commit 20be950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/public/agg_types/metrics/top.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function AggTypeMetricTopProvider(Private) {
{
name: 'field',
filterFieldTypes: function (vis, value) {
if (vis.type.name === 'table') {
if (vis.type.name === 'table' || vis.type.name === 'metric') {
return true;
}
return value === 'number';
Expand Down

0 comments on commit 20be950

Please sign in to comment.