DEV: Prevent error filtering the sidebar items when the section text is empty (#27957)
This commit is contained in:
parent
1bba54c3da
commit
e1f638b0a3
|
@ -65,7 +65,7 @@ function prepareSidebarSectionClass(Section) {
|
|||
return this.links;
|
||||
}
|
||||
|
||||
if (this.text.toLowerCase().match(this.sidebarState.sanitizedFilter)) {
|
||||
if (this.text?.toLowerCase()?.match(this.sidebarState.sanitizedFilter)) {
|
||||
return this.links;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue