From 8003cd6d61137a259a63f91cc9417fe8087d7de5 Mon Sep 17 00:00:00 2001 From: Andrei Grigore Date: Thu, 16 Sep 2021 14:04:27 +0300 Subject: [PATCH] Fix useEffect unnecessary data causing issues with slate text selection --- src/ConnectedChart/ConnectedChart.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConnectedChart/ConnectedChart.jsx b/src/ConnectedChart/ConnectedChart.jsx index 54a54fd6..d507962d 100644 --- a/src/ConnectedChart/ConnectedChart.jsx +++ b/src/ConnectedChart/ConnectedChart.jsx @@ -77,13 +77,13 @@ function ConnectedChart(props) { if (source_url && !visData) { getChartDataFromVisualization(source_url); } + if (provider_url) getDataFromProvider(provider_url || url); }, [ provider_url, visData, url, source_url, - props.data, getDataFromProvider, getChartDataFromVisualization, ]);