diff options
| author | Adam <[email protected]> | 2025-12-18 19:53:38 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-18 19:53:38 -0600 |
| commit | 0dd716a75e87b12c07a73813878ac533f3740fa6 (patch) | |
| tree | 72034bcede585b427c09e8e9faaed7f8bee15d16 /packages/desktop/src/context | |
| parent | 87171467fa94041483d491952416987df4c43671 (diff) | |
| download | opencode-0dd716a75e87b12c07a73813878ac533f3740fa6.tar.gz opencode-0dd716a75e87b12c07a73813878ac533f3740fa6.zip | |
fix(desktop): extra reqs
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, |
