aboutsummaryrefslogtreecommitdiffstats
path: root/apps/cli
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-11-14 09:47:42 +0000
committerGitHub <noreply@github.com>2025-11-14 09:47:42 +0000
commit07390aeff9fb70499e57b236c76419cf884ef4cc (patch)
treed0657db81aba1ccd29ce3fb9bd5c3f1735189fcb /apps/cli
parentc34f70dace47e8a0fb97a3565fb2af626861e898 (diff)
downloadkarakeep-07390aeff9fb70499e57b236c76419cf884ef4cc.tar.zst
fix: remove incorrect array destructuring in mobile search (#2124)
The search was crashing because of incorrect array destructuring on the useDebounce hook return value. useDebounce returns a string, not an array, so using `const [query] = useDebounce(...)` caused query to be undefined when the search string was empty. This resulted in passing { text: undefined } to the tRPC endpoint, which failed Zod validation expecting a string. Fixed by removing the array destructuring: const query = useDebounce(...) Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'apps/cli')
0 files changed, 0 insertions, 0 deletions