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}`}
|
||||
onSubmit={async ({ q }) => {
|
||||
if (q != '') {
|
||||
router.push(`/search?q=${q}`)
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Input
|
||||
|
|
Loading…
Reference in New Issue