Skip to content

Commit

Permalink
Web: Deleted useless code.
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaLopaeva committed Nov 3, 2021
1 parent 4160ddc commit 3aa117c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ const VersionRow = (props) => {
newRowHeight && onUpdateHeight(index, newRowHeight);
}, [showEditPanel, versionsListLength]);

//console.log("updating");

return (
<StyledVersionRow
showEditPanel={showEditPanel}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ class SectionBodyContent extends React.Component {
};

onSetRestoreProcess = (isRestoreProcess) => {
console.log("onSetRestoreProcess", isRestoreProcess);

this.setState({
isRestoreProcess,
});
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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>
Expand All @@ -136,7 +126,6 @@ export default inject(({ auth, filesStore, versionHistoryStore }) => {

return {
culture: auth.settingsStore.culture,
isTabletView: auth.settingsStore.isTabletView,
isLoading,
versions,
fileId,
Expand Down

0 comments on commit 3aa117c

Please sign in to comment.