@devries-cameron20 / t3code-1 / commits / 77bf5213df
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

dont search when input is empty

Julius Marminge committed Feb 25, 2026 at 15:11 UTC 77bf5213dfbd14688b5c9cd16d97e06ae6335c11
1 file changed +1 -1
apps/web/src/lib/projectReactQuery.ts
+1 -1
@@ -36,7 +36,7 @@ export function projectSearchEntriesQueryOptions(input: {
36 limit,
37 });
38 },
39 - enabled: (input.enabled ?? true) && input.cwd !== null,
39 + enabled: (input.enabled ?? true) && input.cwd !== null && input.query.length > 0,
40 staleTime: input.staleTime ?? DEFAULT_SEARCH_ENTRIES_STALE_TIME,
41 placeholderData: (previous) => previous ?? EMPTY_SEARCH_ENTRIES_RESULT,
42 });