From 92482a5946017d385a57a4e32adb7edf3e76a712 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Wed, 26 Aug 2020 16:40:28 +0200 Subject: [PATCH] fix type --- .../plugins/apm/server/lib/rum_client/get_page_view_trends.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/apm/server/lib/rum_client/get_page_view_trends.ts b/x-pack/plugins/apm/server/lib/rum_client/get_page_view_trends.ts index 75fab00d9be4..114137e9fad1 100644 --- a/x-pack/plugins/apm/server/lib/rum_client/get_page_view_trends.ts +++ b/x-pack/plugins/apm/server/lib/rum_client/get_page_view_trends.ts @@ -73,7 +73,7 @@ export async function getPageViewTrends({ categoryBuckets.forEach( ({ key, doc_count: docCount }: { key: string; doc_count: number }) => { if (key === 'Other') { - res[key + `(${breakdownItem.name})`] = docCount; + res[key + `(${breakdownItem?.name})`] = docCount; } else { res[key] = docCount; }