| author | |
| committer | |
| log | 77bf5213dfbd14688b5c9cd16d97e06ae6335c11 |
| tree | f485c8d12cb3bfd3fc38b16d98cc5f1b18359401 |
| parent | c2b9680a5efc0855d24fb5a4bdcf9320469354d4 |
1 files changed, 1 insertions(+), 1 deletions(-)
apps/web/src/lib/projectReactQuery.ts+1-1| ... | ... | @@ -36,7 +36,7 @@ export function projectSearchEntriesQueryOptions(input: { |
| 36 | 36 | limit, |
| 37 | 37 | }); |
| 38 | 38 | }, |
| 39 | enabled: (input.enabled ?? true) && input.cwd !== null, | |
| 39 | enabled: (input.enabled ?? true) && input.cwd !== null && input.query.length > 0, | |
| 40 | 40 | staleTime: input.staleTime ?? DEFAULT_SEARCH_ENTRIES_STALE_TIME, |
| 41 | 41 | placeholderData: (previous) => previous ?? EMPTY_SEARCH_ENTRIES_RESULT, |
| 42 | 42 | }); |