diff --git a/platypush/backend/http/static/js/plugins/sensors/index.js b/platypush/backend/http/static/js/plugins/sensors/index.js index 9f7afa26..6c56d567 100644 --- a/platypush/backend/http/static/js/plugins/sensors/index.js +++ b/platypush/backend/http/static/js/plugins/sensors/index.js @@ -53,7 +53,7 @@ Vue.component('sensors', { onSensorEvent: function(event) { const data = event.data; for (const [name, value] of Object.entries(data)) { - this.metrics[name] = value; + Vue.set(this.metrics, name, value); } }, },