diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 51f999092..eb6e2f51b 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -17,14 +17,6 @@ export class Home extends React.Component, IFilterListsS filterLists: [], loading: true }; - fetch("https://filterlists.com/api/v1/lists") - .then(response => response.json() as Promise) - .then(data => { - this.setState({ - filterLists: data, - loading: false - }); - }); } render() { @@ -33,6 +25,14 @@ export class Home extends React.Component, IFilterListsS Loading...

: Home.renderFilterListsTable(this.state.filterLists); + fetch("https://filterlists.com/api/v1/lists") + .then(response => response.json() as Promise) + .then(data => { + this.setState({ + filterLists: data, + loading: false + }); + }); return
{contents}
;