From 10d44db8e61489495a545802d6604f40b15c4125 Mon Sep 17 00:00:00 2001 From: c727 Date: Thu, 19 Jul 2018 08:45:59 +0200 Subject: [PATCH] Allow views with badges and no cards (#1471) --- src/panels/lovelace/hui-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/hui-view.js b/src/panels/lovelace/hui-view.js index a815adef68..fc4d7ca69a 100644 --- a/src/panels/lovelace/hui-view.js +++ b/src/panels/lovelace/hui-view.js @@ -122,7 +122,7 @@ class HUIView extends PolymerElement { root.removeChild(root.lastChild); } - if (!config) { + if (!config || !config.cards || !Array.isArray(config.cards)) { this._cards = []; return; }