Skip to content

Commit

Permalink
fix: fix empty columns check
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer committed Sep 22, 2024
2 parents e780e32 + 467db77 commit 88e77f2
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 88e77f2

Please sign in to comment.