Add guard for addon
This commit is contained in:
parent
b07f95f956
commit
cadcd845cc
@ -60,7 +60,7 @@ class HassioIngressView extends LitElement {
|
||||
const oldRoute = changedProps.get("route") as this["route"] | undefined;
|
||||
const oldAddon = oldRoute ? extractAddon(oldRoute.path) : undefined;
|
||||
|
||||
if (addon !== oldAddon) {
|
||||
if (addon && addon !== oldAddon) {
|
||||
this._createSession();
|
||||
this._fetchAddonInfo(addon);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user