From 542d536dab627c9fd24ec0d440b0106d71153258 Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 16 Sep 2019 13:46:12 -0300 Subject: Scroll to top view change --- src/Board.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/Board.js') diff --git a/src/Board.js b/src/Board.js index e5997bc..31174e2 100644 --- a/src/Board.js +++ b/src/Board.js @@ -35,12 +35,8 @@ class Board extends Component { this.setState({ error: resource }); } this.setState({ isLoaded: true, threadList: resource["threads"] }); - }) - .catch(console.error); - } - - componentWillUnmount() { - console.log("will unmount"); + }); + window.scrollTo(0, 0); } componentDidUpdate(prevProps) { -- cgit v1.2.1-18-gbd029