1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

Cast fix for urlPath === "lovelace" (#5242)

This commit is contained in:
Bram Kragten
2020-03-18 12:19:01 +01:00
committed by GitHub
parent 1e527a8350
commit 71793dcfa5
+3
View File
@@ -172,6 +172,9 @@ export class HcMain extends HassElement {
return;
}
if (!this._unsubLovelace || this._urlPath !== msg.urlPath) {
if (msg.urlPath === "lovelace") {
msg.urlPath = null;
}
this._urlPath = msg.urlPath;
if (this._unsubLovelace) {
this._unsubLovelace();