Browse Source

fix(perf): cannot read property of undefined area chart (#72773)

Fixes JAVASCRIPT-2TK4
Dominik Buszowiecki 9 months ago
parent
commit
78d44eef08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/components/charts/areaChart.tsx

+ 1 - 1
static/app/components/charts/areaChart.tsx

@@ -25,7 +25,7 @@ export function transformToAreaSeries({
     AreaSeries({
       stack: stacked ? 'area' : undefined,
       name: seriesName,
-      data: data.map(({name, value}) => [name, value]),
+      data: data?.map(({name, value}) => [name, value]),
       lineStyle: {
         color: colors?.[i],
         opacity: 1,