Skip to content

Commit

Permalink
fix(search): do not show error message if query string is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Jul 2, 2024
1 parent 65a6449 commit 17da70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/search/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Renderer: React.FunctionComponent<{
<main>
<section className={`${containerStyles.container}`}>
{(() => {
if (isProblemDetails(props)) {
if (isProblemDetails(props) && qs.length !== 0) {
const messages = [];
props.errors.forEach((e, idx) => {
// @ts-ignore
Expand Down

0 comments on commit 17da70c

Please sign in to comment.