Skip to content

Commit

Permalink
Fix visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jan 11, 2020
1 parent 90e1d2d commit 90db301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ConnectedChart/ConnectedChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function ConnectedChart(props) {
const getDataFromProvider = props.getDataFromProvider;

useEffect(() => {
getDataFromProvider(provider_url || url);
provider_url && getDataFromProvider(provider_url || url);
}, [getDataFromProvider, provider_url, url]);

// TODO: decide which one is used props.data.chartData or data?
Expand Down
2 changes: 1 addition & 1 deletion src/Visualization/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const View = ({ content }) => {
<div>
<ConnectedChart
config={{ displayModeBar: true }}
{...content.visualization}
data={{ chartData: content.visualization }}
/>
</div>
)}
Expand Down

0 comments on commit 90db301

Please sign in to comment.