diff --git a/apps/red-ui/src/app/models/file/file-data.model.ts b/apps/red-ui/src/app/models/file/file-data.model.ts index cd1926b7f..a021afdb2 100644 --- a/apps/red-ui/src/app/models/file/file-data.model.ts +++ b/apps/red-ui/src/app/models/file/file-data.model.ts @@ -84,7 +84,7 @@ export class FileDataModel { } }); - this.redactionLog.redactionLogEntry.forEach((redactionLogEntry) => { + this.redactionLog.redactionLogEntry?.forEach((redactionLogEntry) => { // false positive entries from the redaction-log need to be skipped if (redactionLogEntry.type?.toLowerCase() === 'false_positive') { return; @@ -101,7 +101,7 @@ export class FileDataModel { result.push(redactionLogEntryWrapper); }); - this.manualRedactions.forceRedactions.forEach((forceRedaction) => { + this.manualRedactions.forceRedactions?.forEach((forceRedaction) => { const relevantRedactionLogEntry = result.find((r) => r.id === forceRedaction.id); if (forceRedaction.status === 'DECLINED') { @@ -126,7 +126,7 @@ export class FileDataModel { } }); - this.manualRedactions.entriesToAdd.forEach((manual) => { + this.manualRedactions.entriesToAdd?.forEach((manual) => { const markedAsReasonRedactionLogEntry = result.find((r) => r.id === manual.reason); const relevantRedactionLogEntry = result.find((r) => r.id === manual.id); @@ -187,7 +187,7 @@ export class FileDataModel { } }); - this.manualRedactions.idsToRemove.forEach((idToRemove) => { + this.manualRedactions.idsToRemove?.forEach((idToRemove) => { const relevantRedactionLogEntry = result.find((r) => r.id === idToRemove.id); if (!relevantRedactionLogEntry) { diff --git a/apps/red-ui/src/app/modules/projects/components/comments/comments.component.html b/apps/red-ui/src/app/modules/projects/components/comments/comments.component.html index e357c5b33..0696858b6 100644 --- a/apps/red-ui/src/app/modules/projects/components/comments/comments.component.html +++ b/apps/red-ui/src/app/modules/projects/components/comments/comments.component.html @@ -25,10 +25,14 @@ }) }} -
+ -