From 0b42cf7f129d18d2a0b9393589337cb424919ebd Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Tue, 9 Jan 2018 23:12:27 +0100 Subject: [PATCH] Because the content on the landing page felt static I added a random function to pick between the four list types. --- client/app/components/SearchRequest.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/components/SearchRequest.jsx b/client/app/components/SearchRequest.jsx index bdb5098..50e93a4 100644 --- a/client/app/components/SearchRequest.jsx +++ b/client/app/components/SearchRequest.jsx @@ -47,7 +47,7 @@ class SearchRequest extends React.Component { // this.setState({responseMovieList: null}) this.resetPageNumber(); 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