mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Allow views with badges and no cards (#1471)
This commit is contained in:
parent
e84f5c683c
commit
10d44db8e6
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user