diff options
Diffstat (limited to 'packages/desktop/src/context')
| -rw-r--r-- | packages/desktop/src/context/global-sync.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
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<string, ReturnType<typeof createStore<State>>> = {} 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, |
