mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Allow more than match queries in custom filters (#8614)
If a user attempted to create a custom filter without a match query Kibana would error out because it assumed all queries were match queries. This adds a stricter conditional so that we only attempt to read the match config if a match property actually exists.
This commit is contained in:
parent
5a8aaa29e8
commit
25e995eb60
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export default function (Private) {
|
|||
return filter.exists.field === value;
|
||||
}
|
||||
|
||||
if (filter.query) {
|
||||
if (_.get(filter, 'query.match')) {
|
||||
return filter.query.match[fieldName] && filter.query.match[fieldName].query === value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue