Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM] Service overview page fetches data with wrong transaction type #98657

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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