diff --git a/src/plugins/profiling/common/index.ts b/src/plugins/profiling/common/index.ts index 5a02c7b83bd15..2a95536892716 100644 --- a/src/plugins/profiling/common/index.ts +++ b/src/plugins/profiling/common/index.ts @@ -53,11 +53,7 @@ export function getTopN(obj) { const bucket = obj.topN.histogram.buckets[i]; for (let j = 0; j < bucket.group_by.buckets.length; j++) { const v = bucket.group_by.buckets[j]; - if (typeof v.key === 'string') { - data.push({ x: bucket.key, y: v.Count.value, g: v.key }); - } else { - data.push({ x: bucket.key, y: v.Count.value, g: v.key_as_string }); - } + data.push({ x: bucket.key, y: v.Count.value, g: v.key }); } } } else if (obj.TopN !== undefined) {