diff --git a/public/kibana-integrations/kibana-discover.js b/public/kibana-integrations/kibana-discover.js index 8b2df6ea70..136ab7d8c9 100644 --- a/public/kibana-integrations/kibana-discover.js +++ b/public/kibana-integrations/kibana-discover.js @@ -952,9 +952,15 @@ function discoverController( } const cleaned = []; for(const filter of implicitFilter){ - const tmp = queryFilter.getFilters().filter(item => item.meta.params.query === filter.meta.params.query && - item.meta.params.type === filter.meta.params.type && - item.meta.key === filter.meta.key ); + const tmp = queryFilter + .getFilters() + .filter(item => + item.meta && item.meta.params && item.meta.params.query && + filter.meta && filter.meta.params && filter.meta.params.query && + item.meta.params.query === filter.meta.params.query && + item.meta.params.type === filter.meta.params.type && + item.meta.key === filter.meta.key + ); if(!tmp.length) cleaned.push(filter); }