Allow views with badges and no cards (#1471)

This commit is contained in:
c727 2018-07-19 08:45:59 +02:00 committed by Paulus Schoutsen
parent e84f5c683c
commit 10d44db8e6

View File

@ -122,7 +122,7 @@ class HUIView extends PolymerElement {
root.removeChild(root.lastChild); root.removeChild(root.lastChild);
} }
if (!config) { if (!config || !config.cards || !Array.isArray(config.cards)) {
this._cards = []; this._cards = [];
return; return;
} }