Skip to content

Commit

Permalink
Fallback for missing search_sections
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Feb 2, 2023
1 parent 7e28942 commit 9711c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Searchkit/SectionsSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ const _SectionsSearch = ({
}
/>
<div className="searchsections">
{search_sections.items?.length > 0 ? (
{search_sections?.items?.length > 0 ? (
<button
className={activeSection === 'all' ? 'active' : ''}
onClick={() => restrictSearchToSection('all')}
>
Überall
</button>
) : null}
{search_sections.items?.length > 0 && allow_search_excluded_sections ? (
{search_sections?.items?.length > 0 && allow_search_excluded_sections ? (
<button
className={activeSection === 'others' ? 'active' : ''}
onClick={() => restrictSearchToSection('others')}
Expand Down

0 comments on commit 9711c02

Please sign in to comment.