mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fix loading traces for automation with custom id (#12112)
This commit is contained in:
parent
7b6d3c0e36
commit
c522670815
@ -87,7 +87,7 @@ class HaConfigAutomation extends HassRouterPage {
|
|||||||
(!changedProps || changedProps.has("route")) &&
|
(!changedProps || changedProps.has("route")) &&
|
||||||
this._currentPage !== "dashboard"
|
this._currentPage !== "dashboard"
|
||||||
) {
|
) {
|
||||||
const automationId = this.routeTail.path.substr(1);
|
const automationId = decodeURIComponent(this.routeTail.path.substr(1));
|
||||||
pageEl.automationId = automationId === "new" ? null : automationId;
|
pageEl.automationId = automationId === "new" ? null : automationId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user