mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
fix warnings and rename unsafe lifecycle function (#5814)
This commit is contained in:
@@ -101,7 +101,7 @@ class LibContentContainer extends React.Component {
|
||||
this.errMessage = (<div className="message err-tip">{gettext('Folder does not exist.')}</div>);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.path !== this.props.path || nextProps.updateDetail !== this.props.updateDetail) {
|
||||
this.setState({currentDirent: null});
|
||||
}
|
||||
|
Reference in New Issue
Block a user