Because the content on the landing page felt static I added a random function to pick between the four list types.
This commit is contained in:
@@ -47,7 +47,7 @@ class SearchRequest extends React.Component {
|
|||||||
// this.setState({responseMovieList: null})
|
// this.setState({responseMovieList: null})
|
||||||
this.resetPageNumber();
|
this.resetPageNumber();
|
||||||
this.state.loadResults = true;
|
this.state.loadResults = true;
|
||||||
this.fetchTmdbList('discover');
|
this.fetchTmdbList(this.allowedListTypes[Math.floor(Math.random()*this.allowedListTypes.length)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handles all errors of the response of a fetch call
|
// Handles all errors of the response of a fetch call
|
||||||
|
|||||||
Reference in New Issue
Block a user