From 82a376ceb5ad228e3775d7d74bc81c739ae1ce6d Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sat, 22 May 2021 13:09:44 +0200 Subject: [PATCH] Add guard --- .../performance-chart-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.component.ts b/apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.component.ts index 0a4c9e4a3..e6f3acede 100644 --- a/apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.component.ts +++ b/apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.component.ts @@ -46,7 +46,7 @@ export class PerformanceChartDialog { this.historicalDataItems = this.data.historicalDataItems; - this.historicalDataItems.forEach((historicalDataItem) => { + this.historicalDataItems?.forEach((historicalDataItem) => { const benchmarkItem = historicalData.find((item) => { return item.date === historicalDataItem.date; });