Skip to content

Commit

Permalink
add debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Nov 8, 2023
1 parent 565bd8e commit 45e763e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/lib/components/CommandBar/searchBarLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const searchBarLogic = kea<searchBarLogicType>([
searchResponse: [
null as SearchResponse | null,
{
setSearchQuery: async ({ query }) => {
setSearchQuery: async ({ query }, breakpoint) => {
await breakpoint(300)
return await api.get(`api/projects/@current/search?q=${query}`)
},
},
Expand Down

0 comments on commit 45e763e

Please sign in to comment.