From 3aa117ce995cbbd97afa5402976c62029aff0302 Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Thu, 21 Oct 2021 11:07:22 +0300 Subject: [PATCH] Web: Deleted useless code. --- .../pages/VersionHistory/Section/Body/VersionRow.js | 2 -- .../src/pages/VersionHistory/Section/Body/index.js | 13 +------------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/VersionRow.js b/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/VersionRow.js index d641ed79b7..075b9951ad 100644 --- a/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/VersionRow.js +++ b/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/VersionRow.js @@ -107,8 +107,6 @@ const VersionRow = (props) => { newRowHeight && onUpdateHeight(index, newRowHeight); }, [showEditPanel, versionsListLength]); - //console.log("updating"); - return ( { - 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 (
{ - console.log( - "render list", - this.state, - "versions.length", - versions.length - ); return ( ); }; - console.log("versions", versions); + return versions && !isLoading ? (
{renderList} @@ -136,7 +126,6 @@ export default inject(({ auth, filesStore, versionHistoryStore }) => { return { culture: auth.settingsStore.culture, - isTabletView: auth.settingsStore.isTabletView, isLoading, versions, fileId,