aboutsummaryrefslogtreecommitdiff
path: root/src/Board.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-16 13:46:12 -0300
committerLibravatar Renard 2019-09-16 13:46:12 -0300
commit542d536dab627c9fd24ec0d440b0106d71153258 (patch)
treec25a9b904bac5df0f03568b98c22cd24f87feda9 /src/Board.js
parentc7fcf05857716e187c064d7ba21f27962015b71d (diff)
downloadbai-client-542d536dab627c9fd24ec0d440b0106d71153258.tar.gz
bai-client-542d536dab627c9fd24ec0d440b0106d71153258.tar.xz
bai-client-542d536dab627c9fd24ec0d440b0106d71153258.zip
Scroll to top view change
Diffstat (limited to 'src/Board.js')
-rw-r--r--src/Board.js8
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) {