web: files: fix
This commit is contained in:
parent
ea02ee9313
commit
b63b8edc21
@ -83,11 +83,11 @@ class SectionBodyContent extends React.Component {
|
||||
}
|
||||
} */
|
||||
|
||||
shouldComponentUpdate(nextProps, nextStates) {
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
if(this.state.showSharingPanel !== nextState.showSharingPanel) {
|
||||
return true;
|
||||
}
|
||||
if(!isEqual(this.props, nextProps) || !isEqual(this.state.mediaViewerVisible, nextStates.mediaViewerVisible)) {
|
||||
if(!isEqual(this.props, nextProps) || !isEqual(this.state.mediaViewerVisible, nextState.mediaViewerVisible)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user