Skip to content

Commit

Permalink
Merge fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
awahab07 committed Jan 5, 2024
1 parent 01f5745 commit 1da85c6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
} from '@kbn/deeplinks-observability/locators';
import type { ProfilingLocators } from '@kbn/observability-shared-plugin/public';
import { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common';
import { useDataViewId } from '../../../hooks/use_data_view_id';
import { useAnyOfApmParams } from '../../../hooks/use_apm_params';
import { ApmFeatureFlagName } from '../../../../common/apm_feature_flags';
import { Transaction } from '../../../../typings/es_schemas/ui/transaction';
Expand All @@ -39,6 +38,7 @@ import { useProfilingPlugin } from '../../../hooks/use_profiling_plugin';
import { CustomLinkMenuSection } from './custom_link_menu_section';
import { getSections } from './sections';
import { CustomLinkFlyout } from './custom_link_flyout';
import { useAdHocApmDataView } from '../../../hooks/use_adhoc_apm_data_view';

interface Props {
readonly transaction?: Transaction;
Expand Down Expand Up @@ -134,7 +134,7 @@ function ActionMenuSections({
const { core, uiActions, share } = useApmPluginContext();
const location = useLocation();
const apmRouter = useApmRouter();
const dataViewId = useDataViewId();
const { dataView } = useAdHocApmDataView();

const allDatasetsLocator = share.url.locators.get<AllDatasetsLocatorParams>(
ALL_DATASETS_LOCATOR_ID
Expand Down Expand Up @@ -166,7 +166,7 @@ function ActionMenuSections({
environment,
allDatasetsLocator,
logsLocators,
dataViewId,
dataViewId: dataView?.id,
});

const externalMenuItems = useAsync(() => {
Expand Down

0 comments on commit 1da85c6

Please sign in to comment.