mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
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