Web: Deleted useless code.

This commit is contained in:
Tatiana Lopaeva 2021-10-21 11:07:22 +03:00
parent 4160ddcf69
commit 3aa117ce99
2 changed files with 1 additions and 14 deletions

View File

@ -107,8 +107,6 @@ const VersionRow = (props) => {
newRowHeight && onUpdateHeight(index, newRowHeight);
}, [showEditPanel, versionsListLength]);
//console.log("updating");
return (
<StyledVersionRow
showEditPanel={showEditPanel}

View File

@ -35,8 +35,6 @@ class SectionBodyContent extends React.Component {
};
onSetRestoreProcess = (isRestoreProcess) => {
console.log("onSetRestoreProcess", isRestoreProcess);
this.setState({
isRestoreProcess,
});
@ -67,8 +65,6 @@ class SectionBodyContent extends React.Component {
if (index > 0 && prevVersion === versions[index].versionGroup) {
isVersion = false;
}
console.log("render row", this.state, "versions.length", versions.length);
return (
<div style={style}>
<VersionRow
@ -89,12 +85,6 @@ class SectionBodyContent extends React.Component {
const { versions, isLoading } = this.props;
const renderList = ({ height, width }) => {
console.log(
"render list",
this.state,
"versions.length",
versions.length
);
return (
<StyledVersionList isRestoreProcess={this.state.isRestoreProcess}>
<List
@ -112,7 +102,7 @@ class SectionBodyContent extends React.Component {
</StyledVersionList>
);
};
console.log("versions", versions);
return versions && !isLoading ? (
<div style={{ height: "100%", width: "100%" }}>
<AutoSizer>{renderList}</AutoSizer>
@ -136,7 +126,6 @@ export default inject(({ auth, filesStore, versionHistoryStore }) => {
return {
culture: auth.settingsStore.culture,
isTabletView: auth.settingsStore.isTabletView,
isLoading,
versions,
fileId,