Skip to content

Commit 6c34980

Browse files
authored
fix: attribute loss when updating entity
1 parent 518d322 commit 6c34980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ngsi/entities-NGSI-v2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function sendUpdateValueNgsi2(entityName, originMeasures, originTypeInformation,
463463
}
464464
//remove measures that has been shadowed by an alias (some may be left and managed later)
465465
//Maybe we must filter object_id if there is name == object_id
466-
measures = measures.filter((item) => item.name !== currentAttr.object_id && item.name !== currentAttr.name);
466+
measures = measures.filter((item) => item.name !== currentAttr.object_id);
467467

468468
if (
469469
currentAttr.expression !== undefined &&

0 commit comments

Comments
 (0)