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