RED-8711 - filtered out entities with empty rectangle positions

This commit is contained in:
Valentin Mihai 2024-04-09 12:34:53 +03:00
parent d9c607ffb3
commit bda45f208f

View File

@ -27,6 +27,7 @@ export class EntityLogService extends GenericService<unknown> {
#filterInvalidEntries(entityLogEntry: IEntityLogEntry[]) {
return entityLogEntry.filter(entry => {
entry.positions = entry.positions.filter(p => !!p.rectangle?.length);
const hasPositions = !!entry.positions?.length;
const isRemoved = entry.state === EntryStates.REMOVED;
if (!hasPositions) {