mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
fix warnings and rename unsafe lifecycle function (#5814)
This commit is contained in:
@@ -119,7 +119,7 @@ class LibContentView extends React.Component {
|
||||
});
|
||||
};
|
||||
|
||||
componentWillMount() {
|
||||
UNSAFE_componentWillMount() {
|
||||
const hash = window.location.hash;
|
||||
if (hash.slice(0, 1) === '#') {
|
||||
this.setState({hash: hash});
|
||||
|
Reference in New Issue
Block a user