Skip to content

Commit

Permalink
Render the search result app even if the q is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Apr 23, 2024
1 parent 095abf1 commit 97a3515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/search-result/search-result.entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ const SearchResultEntry: React.FC<SearchResultEntryProps> = ({

return (
<div>
{searchQuery && (
{/* We still want to render the app, even if the search query is an empty string */}
{(searchQuery || searchQuery === "") && (
<GuardedApp app="search-result">
<SearchResult q={searchQuery} pageSize={pageSize} />
</GuardedApp>
Expand Down

0 comments on commit 97a3515

Please sign in to comment.