We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4dc5242 + 7b6aca0 commit adfd894Copy full SHA for adfd894
1 file changed
dist/custom-sidebar.js
@@ -151,7 +151,7 @@ function getSidebar() {
151
root = root && root.querySelector("app-drawer-layout app-drawer");
152
root = root && root.querySelector("ha-sidebar");
153
root = root && root.shadowRoot;
154
- TitleElement = root.querySelector('span');
+ TitleElement = root && root.querySelector('span') ? root.querySelector('span') : null ;
155
root = root && root.querySelector("paper-listbox");
156
return root;
157
}
0 commit comments