From 1ef937eaa5e280030467c6b6e46c5a0315d1f622 Mon Sep 17 00:00:00 2001 From: "fangshun@" Date: Sat, 9 Nov 2024 01:31:03 +0800 Subject: [PATCH] fix: remove the unit from the *_count field (#198641) fix #197929 Before: ![image](https://github.com/user-attachments/assets/e7c908dc-3093-48db-bcbc-0e3c0a16e42a) After: ![image](https://github.com/user-attachments/assets/16a18deb-57c7-45c8-9a1d-af5bd1800275) Signed-off-by: fangshun Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com> --- .../highlight_details_flyout/highlight_details_table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/searchprofiler/public/application/components/highlight_details_flyout/highlight_details_table.tsx b/x-pack/plugins/searchprofiler/public/application/components/highlight_details_flyout/highlight_details_table.tsx index 7fe8c167ed5dc..14ba16fbacbd8 100644 --- a/x-pack/plugins/searchprofiler/public/application/components/highlight_details_flyout/highlight_details_table.tsx +++ b/x-pack/plugins/searchprofiler/public/application/components/highlight_details_flyout/highlight_details_table.tsx @@ -30,7 +30,7 @@ export const HighlightDetailsTable = ({ breakdown }: Props) => { name: 'Time', render: (item: BreakdownItem) => ( - {nsToPretty(item.time, 1)} + {item.key.endsWith('_count') ? item.time : nsToPretty(item.time, 1)} ), },