From b0a14e74ede8f788448754db7b8b6aa534cbe5cc Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 17 Oct 2023 10:02:00 -0400 Subject: [PATCH] Fix it --- src/chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart.tsx b/src/chart.tsx index 2f4f445..0e25c2b 100644 --- a/src/chart.tsx +++ b/src/chart.tsx @@ -183,7 +183,7 @@ export function Chart(props: TypeChartChartProps): JSX.Element { * @returns The whole Chart container JSX.Element or an empty div */ const renderChartContainer = (): JSX.Element => { - if (options && options.geochart) { + if (data && options && options.geochart) { return (
{renderChart()}