Skip to content

Commit

Permalink
Fix invalid columns failure when using columns and rows, and data is …
Browse files Browse the repository at this point in the history
…undefined

Related to #583
  • Loading branch information
michmerr authored Mar 7, 2024
1 parent 418ebc9 commit 467db77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GoogleChartDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 467db77

Please sign in to comment.