From 9bb66946dbe6d2ab0040b784b5428df1c4245283 Mon Sep 17 00:00:00 2001
From: Dax Raad <d@ironbay.co>
Date: Mon, 3 Nov 2025 17:10:31 -0500
Subject: fix: correct dirs parameter type in file search

---
 packages/desktop/src/context/local.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/desktop/src/context/local.tsx')

diff --git a/packages/desktop/src/context/local.tsx b/packages/desktop/src/context/local.tsx
index db4699150..8fc05c452 100644
--- a/packages/desktop/src/context/local.tsx
+++ b/packages/desktop/src/context/local.tsx
@@ -326,9 +326,9 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
       }
 
       const searchFiles = (query: string) =>
-        sdk.client.find.files({ query: { query, dirs: false } }).then((x) => x.data!)
+        sdk.client.find.files({ query: { query, dirs: "false" } }).then((x) => x.data!)
       const searchFilesAndDirectories = (query: string) =>
-        sdk.client.find.files({ query: { query, dirs: true } }).then((x) => x.data!)
+        sdk.client.find.files({ query: { query, dirs: "true" } }).then((x) => x.data!)
 
       sdk.event.listen((e) => {
         const event = e.details
-- 
cgit v1.2.3

