diff --git a/platypush/backend/http/static/js/plugins/sensors/index.js b/platypush/backend/http/static/js/plugins/sensors/index.js index d5bfbf7c5..9f7afa266 100644 --- a/platypush/backend/http/static/js/plugins/sensors/index.js +++ b/platypush/backend/http/static/js/plugins/sensors/index.js @@ -41,13 +41,13 @@ Vue.component('sensors', { }); }); - this.metrics = (await Promise.all(promises)).reduce((obj, metrics) => { + Vue.set(this, 'metrics', (await Promise.all(promises)).reduce((obj, metrics) => { for (const [name, value] of Object.entries(metrics)) { obj[name] = value; } return obj; - }, {}); + }, {})); }, onSensorEvent: function(event) {