diff --git a/apps/red-ui/src/app/services/files/redaction-log.service.ts b/apps/red-ui/src/app/services/files/redaction-log.service.ts index c61509628..37b87c76f 100644 --- a/apps/red-ui/src/app/services/files/redaction-log.service.ts +++ b/apps/red-ui/src/app/services/files/redaction-log.service.ts @@ -33,7 +33,7 @@ export class RedactionLogService extends GenericService { #filterInvalidEntries(redactionLogEntry: IRedactionLogEntry[]) { return redactionLogEntry.filter(entry => { - entry.positions = entry.positions.filter(p => !p.rectangle || !!p.rectangle?.length); + entry.positions = entry.positions?.filter(p => !p.rectangle || !!p.rectangle?.length); const hasPositions = !!entry.positions?.length; if (!hasPositions) { this.#toaster.devInfo(`Entry ${entry.id} was skipped because it has no position`);