mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
fix warnings and rename unsafe lifecycle function (#5814)
This commit is contained in:
@@ -95,7 +95,7 @@ class DirentListItem extends React.Component {
|
||||
this.tagListTitleID = `tag-list-title-${uuidv4()}`;
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.isItemFreezed !== this.props.isItemFreezed && !nextProps.isItemFreezed) {
|
||||
this.setState({
|
||||
highlight: false,
|
||||
|
Reference in New Issue
Block a user