Skip to content

Commit

Permalink
Merge pull request #1855 from MahtabBukhari/Ask_Follow-Up_question_se…
Browse files Browse the repository at this point in the history
…arch_bar_allow_search_with_empty_space

Ask Follow-Up question search bar allow search with empty space ( BUG )
  • Loading branch information
Rassl authored Jul 23, 2024
2 parents b7edd33 + 8e3484a commit 26bc539
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/App/SideBar/AiSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '' })
})
Expand Down

0 comments on commit 26bc539

Please sign in to comment.