Skip to content

Commit

Permalink
A few more environment uiFilters fixes (elastic#92044)
Browse files Browse the repository at this point in the history
Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.

# Conflicts:
#	x-pack/plugins/apm/public/context/annotations/annotations_context.tsx
  • Loading branch information
smith committed Mar 2, 2021
1 parent 9eb6fb7 commit 00f6f99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function getServiceMapServiceNodeInfo({
searchAggregatedTransactions,
}: Options & { serviceName: string }) {
return withApmSpan('get_service_map_node_stats', async () => {
const { start, end, uiFilters } = setup;
const { start, end } = setup;

const filter: ESFilter[] = [
{ term: { [SERVICE_NAME]: serviceName } },
Expand All @@ -66,7 +66,7 @@ export function getServiceMapServiceNodeInfo({

const minutes = Math.abs((end - start) / (1000 * 60));
const taskParams = {
environment: uiFilters.environment,
environment,
filter,
searchAggregatedTransactions,
minutes,
Expand Down

0 comments on commit 00f6f99

Please sign in to comment.