From 22860c8328f223d7c18c2426ce18c01ab24778cb Mon Sep 17 00:00:00 2001 From: Dominique Clarke Date: Thu, 14 Apr 2022 11:18:07 -0400 Subject: [PATCH] ux - fix javascript errors href --- .../app/rum_dashboard/impactful_metrics/js_errors.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/ux/public/components/app/rum_dashboard/impactful_metrics/js_errors.tsx b/x-pack/plugins/ux/public/components/app/rum_dashboard/impactful_metrics/js_errors.tsx index 760ed2cba5390..ee7df33f4b3b7 100644 --- a/x-pack/plugins/ux/public/components/app/rum_dashboard/impactful_metrics/js_errors.tsx +++ b/x-pack/plugins/ux/public/components/app/rum_dashboard/impactful_metrics/js_errors.tsx @@ -21,6 +21,7 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; import { useFetcher } from '../../../../hooks/use_fetcher'; +import { useKibanaServices } from '../../../../hooks/use_kibana_services'; import { I18LABELS } from '../translations'; import { CsmSharedContext } from '../csm_shared_context'; import { FETCH_STATUS } from '../../../../../../observability/public'; @@ -32,6 +33,8 @@ interface JSErrorItem { } export function JSErrors() { + const { http } = useKibanaServices(); + const basePath = http.basePath.get(); const { rangeId, urlParams, uxUiFilters } = useLegacyUrlParams(); const { start, end, serviceName, searchTerm } = urlParams; @@ -70,7 +73,9 @@ export function JSErrors() { field: 'errorMessage', name: I18LABELS.errorMessage, render: (errorMessage: string, item: JSErrorItem) => ( - + {errorMessage} ),