diff --git a/x-pack/plugins/observability_solution/profiling/public/components/flamegraph/index.tsx b/x-pack/plugins/observability_solution/profiling/public/components/flamegraph/index.tsx index b3dfb877963cd..c1d50ba9142a6 100644 --- a/x-pack/plugins/observability_solution/profiling/public/components/flamegraph/index.tsx +++ b/x-pack/plugins/observability_solution/profiling/public/components/flamegraph/index.tsx @@ -194,7 +194,7 @@ export function FlameGraph({ primaryFlamegraph.TotalAnnualCostsUSDItems[valueIndex] } baselineScaleFactor={baseline} - comparisonAnnualCO2KgsInclusive={comparisonNode.TotalAnnualCO2Kgs} + comparisonAnnualCO2KgsInclusive={comparisonNode?.TotalAnnualCO2Kgs} comparisonAnnualCostsUSDInclusive={comparisonNode?.TotalAnnualCostUSD} comparisonCountExclusive={comparisonNode?.CountExclusive} comparisonCountInclusive={comparisonNode?.CountInclusive}