mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +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);
|
||||
}
|
||||
|
||||
if (!config) {
|
||||
if (!config || !config.cards || !Array.isArray(config.cards)) {
|
||||
this._cards = [];
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user