diff --git a/platypush/backend/http/static/js/plugins/sensors/index.js b/platypush/backend/http/static/js/plugins/sensors/index.js index 07db0c2b..2cfbb263 100644 --- a/platypush/backend/http/static/js/plugins/sensors/index.js +++ b/platypush/backend/http/static/js/plugins/sensors/index.js @@ -50,7 +50,7 @@ Vue.component('sensors', { Vue.set(this, 'metrics', (await Promise.all(promises)).reduce((obj, metrics) => { if (!metrics) - return; + return obj; for (const [name, value] of Object.entries(metrics)) { obj[name] = value;