From 835eeb4652e4f3e27eca2521d358e714dd859b16 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Mon, 9 Jan 2023 11:01:36 -0500 Subject: [PATCH] [8.6] [ML] Transforms: Fix transforms JSON display (#147996) (#148551) # Backport This will backport the following commits from `main` to `8.6`: - [[ML] Transforms: Fix transforms JSON display (#147996)](https://github.com/elastic/kibana/pull/147996) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: James Gowdy --- .../__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)}