Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Mar 22, 2021
1 parent 0fbb0ff commit 7ec0933
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plugins/data/common/search/expressions/kibana_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ export const kibanaContextFunction: ExpressionFunctionKibanaContext = {
async fn(input, args, { getSavedObject }) {
const timeRange = args.timeRange || input?.timeRange;
let queries = mergeQueries(input?.query, args?.q || []);
let filters = [...(input?.filters || []), ...(args?.filters || [])];
let filters = [
...(input?.filters || []),
...(args?.filters?.map((f) => {
// @ts-ignore
delete f.type;
return f;
}) || []),
];

if (args.savedSearchId) {
if (typeof getSavedObject !== 'function') {
Expand Down

0 comments on commit 7ec0933

Please sign in to comment.