diff options
| author | Dhravya <[email protected]> | 2024-07-07 08:51:53 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-07-07 08:51:53 -0500 |
| commit | 0ac78ae2feb917a96c84448abbc38fbe474ca212 (patch) | |
| tree | abba6a2a39829dfb3982b52cab094dd19bd4838d /apps/web/app/(dash) | |
| parent | Merge pull request #107 from MaheshtheDev/maheshthedev/fix-filter (diff) | |
| download | supermemory-0ac78ae2feb917a96c84448abbc38fbe474ca212.tar.xz supermemory-0ac78ae2feb917a96c84448abbc38fbe474ca212.zip | |
cleaned up migrations
Diffstat (limited to 'apps/web/app/(dash)')
| -rw-r--r-- | apps/web/app/(dash)/home/queryinput.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/web/app/(dash)/home/queryinput.tsx b/apps/web/app/(dash)/home/queryinput.tsx index 2c4b6533..d622b8b0 100644 --- a/apps/web/app/(dash)/home/queryinput.tsx +++ b/apps/web/app/(dash)/home/queryinput.tsx @@ -82,6 +82,9 @@ function QueryInput({ onKeyDown={(e) => { if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); + if (q.trim().length === 0) { + return; + } handleSubmit(q, preparedSpaces); setQ(""); } @@ -95,6 +98,9 @@ function QueryInput({ type="submit" onClick={(e) => { e.preventDefault(); + if (q.trim().length === 0) { + return; + } handleSubmit(q, preparedSpaces); }} disabled={disabled} |