DEV: Prevent error filtering the sidebar items when the section text is empty (#27957)

This commit is contained in:
Sérgio Saquetim 2024-07-18 13:17:13 -03:00 committed by GitHub
parent 1bba54c3da
commit e1f638b0a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}