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) (#98684)

Co-authored-by: Cauê Marcondes <[email protected]>
  • Loading branch information
kibanamachine and cauemarcondes authored Apr 28, 2021
1 parent b077d32 commit c571387
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 c571387

Please sign in to comment.