From ac5f1555ea410581dfcd6dda8cba63cadca90251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CBastien?= <“bastien.hubert@hotmail.com”> Date: Tue, 17 Sep 2024 11:33:32 +0200 Subject: [PATCH] Improve method for checking "low" property existence in downloadCSV function --- src/chart/ChartUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/ChartUtils.ts b/src/chart/ChartUtils.ts index c88afe17a..6a2911ef4 100644 --- a/src/chart/ChartUtils.ts +++ b/src/chart/ChartUtils.ts @@ -164,7 +164,7 @@ export const downloadCSV = (rows) => { headers.forEach((header) => { // Parse value let value = row[header]; - if (value && value.low) { + if (value && 'low' in value) { value = value.low; } csv += `${JSON.stringify(value)}`;