web: files: fix

This commit is contained in:
NikolayRechkin 2020-05-19 09:27:46 +03:00
parent ea02ee9313
commit b63b8edc21

View File

@ -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;