فهرست منبع

modified oldestRevision from the 2nd FB

Shunm634-source 3 سال پیش
والد
کامیت
8299fb3847
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  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
       }
 
-      let isOldestRevision = false;
-      if (revision === oldestRevision) isOldestRevision = true;
+      const isOldestRevision = revision === oldestRevision;
 
       const hasDiff = revision.hasDiffToPrev !== false; // set 'true' if undefined for backward compatibility