From 0dd716a75e87b12c07a73813878ac533f3740fa6 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 18 Dec 2025 19:53:38 -0600 Subject: fix(desktop): extra reqs --- packages/desktop/src/context/global-sync.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/desktop/src/context') diff --git a/packages/desktop/src/context/global-sync.tsx b/packages/desktop/src/context/global-sync.tsx index fa1a281dc..6c6a02432 100644 --- a/packages/desktop/src/context/global-sync.tsx +++ b/packages/desktop/src/context/global-sync.tsx @@ -72,6 +72,7 @@ function createGlobalSync() { const children: Record>> = {} function child(directory: string) { + if (!directory) console.error("No directory provided") if (!children[directory]) { setGlobalStore("children", directory, { project: "", @@ -122,6 +123,7 @@ function createGlobalSync() { } async function bootstrapInstance(directory: string) { + if (!directory) return const [, setStore] = child(directory) const sdk = createOpencodeClient({ baseUrl: globalSDK.url, -- cgit v1.2.3