diff options
Diffstat (limited to 'src/Board.js')
-rw-r--r-- | src/Board.js | 8 |
1 files changed, 2 insertions, 6 deletions
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) { |