Skip to content

Commit

Permalink
applying review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Oct 24, 2020
1 parent 05aca66 commit ff70097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/plugins/expressions/common/execution/execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ export class Execution<
variables: execution.params.variables || {},
types: executor.getTypes(),
abortSignal: this.abortController.signal,
inspectorAdapters:
execution.params.inspectorAdapters ||
((createDefaultInspectorAdapters() as any) as InspectorAdapters),
inspectorAdapters: execution.params.inspectorAdapters || createDefaultInspectorAdapters(),
...(execution.params as any).extraContext,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export const kibana: ExpressionFunctionKibana = {
// TODO: But it shouldn't be need.
...input,
type: 'kibana_context',
query: [...toArray((getSearchContext() as any).query), ...toArray((input || {}).query)],
filters: [...((getSearchContext() as any).filters || []), ...((input || {}).filters || [])],
timeRange: (getSearchContext() as any).timeRange || (input ? input.timeRange : undefined),
query: [...toArray(getSearchContext().query), ...toArray((input || {}).query)],
filters: [...(getSearchContext().filters || []), ...((input || {}).filters || [])],
timeRange: getSearchContext().timeRange || (input ? input.timeRange : undefined),
};

return output;
Expand Down

0 comments on commit ff70097

Please sign in to comment.