Browse Source

modified oldestRevision from the 2nd FB

Shunm634-source 3 years ago
parent
commit
8299fb3847
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packages/app/src/components/PageHistory/PageRevisionTable.jsx

+ 1 - 2
packages/app/src/components/PageHistory/PageRevisionTable.jsx

@@ -124,8 +124,7 @@ class PageRevisionTable extends React.Component {
         previousRevision = revision; // if it is the first revision, show full text as diff text
         previousRevision = revision; // if it is the first revision, show full text as diff text
       }
       }
 
 
-      let isOldestRevision = false;
-      if (revision === oldestRevision) isOldestRevision = true;
+      const isOldestRevision = revision === oldestRevision;
 
 
       const hasDiff = revision.hasDiffToPrev !== false; // set 'true' if undefined for backward compatibility
       const hasDiff = revision.hasDiffToPrev !== false; // set 'true' if undefined for backward compatibility