mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Adding a check for aggConfig and aggConfig.aggType
This commit is contained in:
parent
f721f419c1
commit
834a0bbab5
1 changed files with 3 additions and 1 deletions
|
@ -146,7 +146,9 @@ define(function (require) {
|
|||
|
||||
if (!vis.listeners) vis.listeners = {};
|
||||
vis.listeners.click = function (e) {
|
||||
if (e.aggConfig.aggType.name === 'terms') {
|
||||
// This code is only inplace for the beta release this will all get refactored
|
||||
// after we get the release out.
|
||||
if (e.aggConfig && e.aggConfig.aggType && e.aggConfig.aggType.name === 'terms') {
|
||||
var filter;
|
||||
var filters = _.flatten([$state.filters || []], true);
|
||||
var previous = _.find(filters, function (item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue