mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Cast fix for urlPath === "lovelace" (#5242)
This commit is contained in:
parent
1e527a8350
commit
71793dcfa5
@ -172,6 +172,9 @@ export class HcMain extends HassElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this._unsubLovelace || this._urlPath !== msg.urlPath) {
|
if (!this._unsubLovelace || this._urlPath !== msg.urlPath) {
|
||||||
|
if (msg.urlPath === "lovelace") {
|
||||||
|
msg.urlPath = null;
|
||||||
|
}
|
||||||
this._urlPath = msg.urlPath;
|
this._urlPath = msg.urlPath;
|
||||||
if (this._unsubLovelace) {
|
if (this._unsubLovelace) {
|
||||||
this._unsubLovelace();
|
this._unsubLovelace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user