thomassorensen2650 / node-red-contrib-mqtt-sparkplug-plus

A node that makes it simple to implement MQTT Sparkplug in Node-Red
22 stars 7 forks source link

#68 Issue #69

Closed archerixx closed 1 month ago

archerixx commented 1 month ago

I created copy of given metrics inside loop that you already do with aliases, to avoid issue that causes original metrics object to be affected by shallow copy. Reference issue #68

Although I am not sure if it was intended in first place for metrics to lose name in this process or is it just mistake that you check if metrics still have name even though aliases were already applied.

This is just suggestion that fixed issue for me, please feel free to create changes yourself and remove this PR.