From 51a84ebd1d8d2a8bbe9fc80216acc3e0b2d7ddb8 Mon Sep 17 00:00:00 2001 From: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:18:07 +0100 Subject: [PATCH] [ML] AiOps: Change point detection - Remove unnecessary theme provider (#201094) ## Summary Recently, an error started appearing on the Change Point Detection page: ![image](https://github.com/user-attachments/assets/d802fe26-0222-4286-b32e-c967cadcd466) This occurred because we had a duplicate Theme provider in the component tree. After removing the duplicate: https://github.com/user-attachments/assets/81568e67-93dc-4c01-9db6-26c57a4c2b52 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> --- .../change_point_detection_root.tsx | 49 +++++++++---------- x-pack/plugins/aiops/tsconfig.json | 1 - 2 files changed, 23 insertions(+), 27 deletions(-) diff --git a/x-pack/plugins/aiops/public/components/change_point_detection/change_point_detection_root.tsx b/x-pack/plugins/aiops/public/components/change_point_detection/change_point_detection_root.tsx index 420e2b510c62e..1ca4d0449a6c8 100644 --- a/x-pack/plugins/aiops/public/components/change_point_detection/change_point_detection_root.tsx +++ b/x-pack/plugins/aiops/public/components/change_point_detection/change_point_detection_root.tsx @@ -10,7 +10,6 @@ import React, { useMemo } from 'react'; import type { Observable } from 'rxjs'; import { map } from 'rxjs'; import { pick } from 'lodash'; -import { KibanaThemeProvider } from '@kbn/react-kibana-context-theme'; import { EuiSpacer } from '@elastic/eui'; import type { DataView } from '@kbn/data-views-plugin/common'; @@ -86,30 +85,28 @@ export const ChangePointDetectionAppState: FC const casesPermissions = appContextValue.cases?.helpers.canUseCases(); return ( - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + ); }; diff --git a/x-pack/plugins/aiops/tsconfig.json b/x-pack/plugins/aiops/tsconfig.json index e8b4f4f3ed972..234420f01c52f 100644 --- a/x-pack/plugins/aiops/tsconfig.json +++ b/x-pack/plugins/aiops/tsconfig.json @@ -63,7 +63,6 @@ "@kbn/presentation-containers", "@kbn/presentation-publishing", "@kbn/presentation-util-plugin", - "@kbn/react-kibana-context-theme", "@kbn/react-kibana-mount", "@kbn/rison", "@kbn/saved-search-plugin",