mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 14:26:35 +00:00
Fix for views with url starting with a number (#5176)
This commit is contained in:
parent
d327045802
commit
785ae4a83d
@ -476,7 +476,7 @@ class HUIRoot extends LitElement {
|
||||
newSelectView = "hass-unused-entities";
|
||||
} else if (this._routeData!.view) {
|
||||
const selectedView = this._routeData!.view;
|
||||
const selectedViewInt = parseInt(selectedView, 10);
|
||||
const selectedViewInt = Number(selectedView);
|
||||
let index = 0;
|
||||
for (let i = 0; i < views.length; i++) {
|
||||
if (views[i].path === selectedView || i === selectedViewInt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user