Merge pull request #81 from johnpaulkiser/patch-1
Don't submit empty search queries
This commit is contained in:
commit
2e28c95c39
|
@ -36,7 +36,9 @@ export default function Search () {
|
||||||
}}
|
}}
|
||||||
className={`w-auto ${styles.active}`}
|
className={`w-auto ${styles.active}`}
|
||||||
onSubmit={async ({ q }) => {
|
onSubmit={async ({ q }) => {
|
||||||
router.push(`/search?q=${q}`)
|
if (q != '') {
|
||||||
|
router.push(`/search?q=${q}`)
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Input
|
<Input
|
||||||
|
|
Loading…
Reference in New Issue