Fix discover sidebar Visualize button for geo_point fields (#13539) (#13614)

Fixes #12227

It seems the order of aggs is important now. I don't know the underlying cause here, I just saved a good and bad version of tilemap visualizations and compared the saved objects to figure out what changed.
This commit is contained in:
Matt Bargar 2017-08-21 13:05:22 -04:00 committed by GitHub
parent 3696fc02de
commit 5e73c36c46

View file

@ -201,8 +201,8 @@ app.directive('discFieldChooser', function ($location, globalState, config, $rou
vis: {
type: type,
aggs: [
{ schema: 'metric', type: 'count', 'id': '2' },
agg,
{ schema: 'metric', type: 'count', 'id': '2' }
]
}
})