diff --git a/src/components/App/SideBar/AiSearch/index.tsx b/src/components/App/SideBar/AiSearch/index.tsx index 69cdf6f8f..1a58a8290 100644 --- a/src/components/App/SideBar/AiSearch/index.tsx +++ b/src/components/App/SideBar/AiSearch/index.tsx @@ -14,6 +14,10 @@ export const AiSearch = () => { const { reset } = form const handleSubmit = form.handleSubmit(({ search }) => { + if (search.trim() === '') { + return + } + fetchData(setBudget, setAbortRequests, search) reset({ search: '' }) })