diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index f89bb5bc1..5ec1dbdc8 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -361,7 +361,7 @@ export class AnnotationWrapper implements IListable, Record { const viableChanges = redactionLogEntryWrapper.changes.filter(c => c.analysisNumber > 1); const lastChange = viableChanges.sort(chronologicallyBy(x => x.dateTime)).at(-1); const lastChangeOccurredAfterLastManualChange = - timestampOf(lastChange.dateTime) > timestampOf(lastRelevantManualChange.processedDate); + lastChange && timestampOf(lastChange.dateTime) > timestampOf(lastRelevantManualChange.processedDate); if (lastChangeOccurredAfterLastManualChange && lastChange.type === ChangeTypes.ADDED && redactionLogEntryWrapper.redacted) { annotationWrapper.superType = SuperTypes.Redaction;