Skip to content

Commit

Permalink
[APM] Service overview page fetches data with wrong transaction type (#…
Browse files Browse the repository at this point in the history
…98657) (#98685)

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
  • Loading branch information
kibanamachine and cauemarcondes authored Apr 28, 2021
1 parent 2d48ac4 commit 4d83c3f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import React, { FormEvent, useCallback } from 'react';
import { useHistory } from 'react-router-dom';
import styled from 'styled-components';
import { useApmServiceContext } from '../../context/apm_service/use_apm_service_context';
import { useUrlParams } from '../../context/url_params_context/use_url_params';
import * as urlHelpers from './Links/url_helpers';

// The default transaction type (for non-RUM services) is "request". Set the
Expand All @@ -21,11 +20,8 @@ const EuiSelectWithWidth = styled(EuiSelect)`
`;

export function TransactionTypeSelect() {
const { transactionTypes } = useApmServiceContext();
const { transactionTypes, transactionType } = useApmServiceContext();
const history = useHistory();
const {
urlParams: { transactionType },
} = useUrlParams();

const handleChange = useCallback(
(event: FormEvent<HTMLSelectElement>) => {
Expand Down

0 comments on commit 4d83c3f

Please sign in to comment.