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()}