From 467db772b9a214c74772b2b388d8a3d7af0665e4 Mon Sep 17 00:00:00 2001 From: michmerr Date: Thu, 7 Mar 2024 11:33:07 -0800 Subject: [PATCH] Fix invalid columns failure when using columns and rows, and data is undefined Related to #583 --- src/components/GoogleChartDataTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/GoogleChartDataTable.tsx b/src/components/GoogleChartDataTable.tsx index 4b277d9e..5331312a 100644 --- a/src/components/GoogleChartDataTable.tsx +++ b/src/components/GoogleChartDataTable.tsx @@ -151,7 +151,7 @@ export class GoogleChartDataTableInner extends React.Component< newData ); } - if (data !== null) { + if (data) { if (Array.isArray(data)) { dataTable = google.visualization.arrayToDataTable(data); } else {