From ba06f687522fed393036ff01d9230f341e37d710 Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Mon, 9 Jan 2023 14:58:56 +0000 Subject: [PATCH] [ML] Transforms: Fix transforms JSON display (#147996) Fixing a typo in the code from when the JSON editor was [converted](https://github.com/elastic/kibana/pull/108310) from using `EuiCodeEditor` **Before** ![image](https://user-images.githubusercontent.com/22172091/209140230-fcb3fff5-0040-487a-bffc-581a8fe2f4e4.png) **After** ![image](https://user-images.githubusercontent.com/22172091/209140326-98eecef0-d9bf-4145-8342-788b4166b28d.png) --- .../__snapshots__/expanded_row_json_pane.test.tsx.snap | 1 - .../components/transform_list/expanded_row_json_pane.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/__snapshots__/expanded_row_json_pane.test.tsx.snap b/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/__snapshots__/expanded_row_json_pane.test.tsx.snap index 7a640389e2915..19a5055954d84 100644 --- a/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/__snapshots__/expanded_row_json_pane.test.tsx.snap +++ b/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/__snapshots__/expanded_row_json_pane.test.tsx.snap @@ -21,7 +21,6 @@ exports[`Transform: Transform List Expanded Row Minimal } } > - value= { "id": "fq_date_histogram_1m_1441", "source": { diff --git a/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/expanded_row_json_pane.tsx b/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/expanded_row_json_pane.tsx index f3dd44afe1948..c68a57ea12109 100644 --- a/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/expanded_row_json_pane.tsx +++ b/x-pack/plugins/transform/public/app/sections/transform_management/components/transform_list/expanded_row_json_pane.tsx @@ -34,7 +34,7 @@ export const ExpandedRowJsonPane: FC = ({ json }) => { style={{ width: '100%' }} isCopyable > - value={JSON.stringify(json, null, 2)} + {JSON.stringify(json, null, 2)}