mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-10 20:40:36 +00:00
fix(core): more defensive project list
This commit is contained in:
parent
7e016fdda6
commit
af2a09940c
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ export namespace Project {
|
|||
const projects = await Promise.all(keys.map((x) => Storage.read<Info>(x)))
|
||||
return projects.map((project) => ({
|
||||
...project,
|
||||
sandboxes: project.sandboxes.filter((x) => existsSync(x)),
|
||||
sandboxes: project.sandboxes?.filter((x) => existsSync(x)),
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue