RED-8711 - filtered out entities with empty rectangle positions
This commit is contained in:
parent
1587c9c84a
commit
09aa5eac60
@ -33,6 +33,7 @@ export class RedactionLogService extends GenericService<unknown> {
|
|||||||
|
|
||||||
#filterInvalidEntries(redactionLogEntry: IRedactionLogEntry[]) {
|
#filterInvalidEntries(redactionLogEntry: IRedactionLogEntry[]) {
|
||||||
return redactionLogEntry.filter(entry => {
|
return redactionLogEntry.filter(entry => {
|
||||||
|
entry.positions = entry.positions.filter(p => !p.rectangle || !!p.rectangle?.length);
|
||||||
const hasPositions = !!entry.positions?.length;
|
const hasPositions = !!entry.positions?.length;
|
||||||
if (!hasPositions) {
|
if (!hasPositions) {
|
||||||
this.#toaster.devInfo(`Entry ${entry.id} was skipped because it has no position`);
|
this.#toaster.devInfo(`Entry ${entry.id} was skipped because it has no position`);
|
||||||
|
|||||||
@ -2,4 +2,5 @@ import { ICellRectangle } from './cell-rectangle';
|
|||||||
|
|
||||||
export interface IRectangle extends ICellRectangle {
|
export interface IRectangle extends ICellRectangle {
|
||||||
page?: number;
|
page?: number;
|
||||||
|
rectangle?: [];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user