Related giusto cosi

This commit is contained in:
Giampiero Galeazzi
2019-02-17 16:35:18 +01:00
parent 6c766c3c33
commit bd55d431e8
+1 -1
View File
@@ -38,7 +38,7 @@ class Related extends Component {
}
componentDidUpdate(prevProps,prevState){
if (prevProps.match.params.videoId !== this.state.videoId){
if (prevProps.match.params.id !== this.props.match.params.id){
axios.get("https://www.googleapis.com/youtube/v3/search",{
params:{
'part': 'snippet',