Archived
Related giusto cosi
This commit is contained in:
1 parent
6c766c3c33
commit
bd55d431e8
1 file changed
+1
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user