Fix updating country graph

pull/231/head
Uku Taht 6 years ago
parent 82c7572ba8
commit 12ea12c547

@ -26,7 +26,7 @@ export default class Countries extends React.Component {
componentDidUpdate(prevProps) {
if (this.props.query !== prevProps.query) {
this.setState({loading: true, countries: null})
this.fetchCountries()
this.fetchCountries().then(this.drawMap.bind(this))
}
}

Loading…
Cancel
Save