diff options
| author | Daniel Polito <[email protected]> | 2026-01-03 13:26:30 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-03 10:26:30 -0600 |
| commit | c7c1790da8a407eb737da46fa659784c3e6c7891 (patch) | |
| tree | d6b2a87dc0d94453fad2d6f76f9d4654ed480cab /packages/app/src/context/layout.tsx | |
| parent | 12eea69f2e4430bb69f83a5d7851e64b2f84e78f (diff) | |
| download | opencode-c7c1790da8a407eb737da46fa659784c3e6c7891.tar.gz opencode-c7c1790da8a407eb737da46fa659784c3e6c7891.zip | |
Desktop: Edit Project Fix (#6757)
Diffstat (limited to 'packages/app/src/context/layout.tsx')
| -rw-r--r-- | packages/app/src/context/layout.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/app/src/context/layout.tsx b/packages/app/src/context/layout.tsx index 6a9258b4c..bc0d49758 100644 --- a/packages/app/src/context/layout.tsx +++ b/packages/app/src/context/layout.tsx @@ -90,7 +90,11 @@ export const { use: useLayout, provider: LayoutProvider } = createSimpleContext( } function enrich(project: { worktree: string; expanded: boolean }) { - const metadata = globalSync.data.project.find((x) => x.worktree === project.worktree) + const [childStore] = globalSync.child(project.worktree) + const projectID = childStore.project + const metadata = projectID + ? globalSync.data.project.find((x) => x.id === projectID) + : globalSync.data.project.find((x) => x.worktree === project.worktree) return [ { ...project, |
