fix: allow for non-vcs projects in desktop

This commit is contained in:
Adam 2025-12-15 14:16:05 -06:00
parent 62cc532ecc
commit 337a7e9646
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -288,9 +288,7 @@ export const { use: useGlobalSync, provider: GlobalSyncProvider } = createSimple
globalSDK.client.project.list().then(async (x) => {
setGlobalStore(
"project",
x
.data!.filter((p) => !p.worktree.includes("opencode-test") && p.vcs)
.sort((a, b) => a.id.localeCompare(b.id)),
x.data!.filter((p) => !p.worktree.includes("opencode-test")).sort((a, b) => a.id.localeCompare(b.id)),
)
}),
globalSDK.client.provider.list().then((x) => {