diff --git a/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/index.js b/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/index.js index 76fa553b8b9..69320ba40db 100644 --- a/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/index.js +++ b/products/ASC.Files/Client/src/pages/VersionHistory/Section/Body/index.js @@ -63,13 +63,15 @@ class SectionBodyContent extends React.Component { renderRow = memo(({ index, style }) => { const { versions, culture } = this.props; const { isRestoreProcess } = this.state; - console.log("isRestoreProcess row", this.state); + + const prevVersion = versions[index > 0 ? index - 1 : index].versionGroup; let isVersion = true; - if (this.itemVersion === versions[index].versionGroup) { + + if (index > 0 && prevVersion === versions[index].versionGroup) { + //console.log("isVersion if"); isVersion = false; - } else { - this.itemVersion = versions[index].versionGroup; } + return (
{ - console.log("this.state. render list", this.state); + //console.log("this.state. render list", this.state); return (