From b54f8d1de35545a3320b6aae19facec81aed259a Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 15 Apr 2022 13:41:59 +0200 Subject: [PATCH] feat(ui) - check for key --- frontend/app/mstore/dashboardStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/mstore/dashboardStore.ts b/frontend/app/mstore/dashboardStore.ts index ba8c23e58..503ea285f 100644 --- a/frontend/app/mstore/dashboardStore.ts +++ b/frontend/app/mstore/dashboardStore.ts @@ -358,7 +358,8 @@ export default class DashboardStore implements IDashboardSotre { const categories: any[] = [] response.forEach(category => { const widgets: any[] = [] - category.widgets.forEach(widget => { + // TODO speed_location is not supported yet + category.widgets.filter(w => w.predefinedKey !== 'speed_location').forEach(widget => { const w = new Widget().fromJson(widget) widgets.push(w) })