|
|
@@ -21,6 +21,8 @@ type PageRevisionTableProps = {
|
|
|
currentPagePath: string
|
|
|
}
|
|
|
|
|
|
+const REVISION_BROKEN_BEFORE = new Date('2023-06-07T23:45:20.348+0000');
|
|
|
+
|
|
|
export const PageRevisionTable = (props: PageRevisionTableProps): JSX.Element => {
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
@@ -201,9 +203,17 @@ export const PageRevisionTable = (props: PageRevisionTableProps): JSX.Element =>
|
|
|
const isOldestRevision = revision === oldestRevision;
|
|
|
const latestRevision = revisions[0];
|
|
|
|
|
|
+ const formattedRevisionCreatedAt = new Date(revision.createdAt);
|
|
|
+
|
|
|
+ const isBrokenRevision = formattedRevisionCreatedAt < REVISION_BROKEN_BEFORE;
|
|
|
+
|
|
|
// set 'true' if undefined for backward compatibility
|
|
|
const hasDiff = revision.hasDiffToPrev !== false;
|
|
|
- return renderRow(revision, previousRevision, latestRevision, isOldestRevision, hasDiff);
|
|
|
+
|
|
|
+ if (!isBrokenRevision) {
|
|
|
+ return renderRow(revision, previousRevision, latestRevision, isOldestRevision, hasDiff);
|
|
|
+ }
|
|
|
+ return;
|
|
|
})
|
|
|
}
|
|
|
</tbody>
|