RED-8711 - filtered out entities with empty rectangle positions
This commit is contained in:
parent
07eed9f6e1
commit
b2616a856b
@ -26,6 +26,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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user