mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Catch for no resources defined
This commit is contained in:
parent
545af4c6d2
commit
44d64bc7ce
@ -143,7 +143,7 @@ class HUIRoot extends EventsMixin(PolymerElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_configChanged(config) {
|
_configChanged(config) {
|
||||||
this._loadResources(config.resources);
|
this._loadResources(config.resources || []);
|
||||||
// On config change, recreate the view from scratch.
|
// On config change, recreate the view from scratch.
|
||||||
this._selectView(this._curView);
|
this._selectView(this._curView);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user