docs: fix overview page search

close #24860
This commit is contained in:
afc163 2020-06-09 13:52:01 +08:00
parent 4e2118cad0
commit 84381e3e6c

View File

@ -77,7 +77,7 @@ const ComponentOverview = ({
component =>
!search.trim() ||
component.title.toLowerCase().includes(search.trim().toLowerCase()) ||
component.subtitle.toLowerCase().includes(search.trim().toLowerCase()),
(component.subtitle || '').toLowerCase().includes(search.trim().toLowerCase()),
);
return (
<div key={group.title} className="components-overview">