Skip to content

Commit c1b05c9

Browse files
committed
fix type
1 parent 181f6c5 commit c1b05c9

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

packages/opencode/src/cli/cmd/tui/component/dialog-workspace-create.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,17 @@ export function DialogWorkspaceSelect(props: {
172172
},
173173
category: "Choose workspace",
174174
})),
175-
hasMore
176-
? {
177-
title: "View all workspaces",
178-
value: { type: "existing-list" as const },
179-
description: "Choose from all workspaces",
180-
category: "Choose workspace",
181-
}
182-
: null,
183-
].filter(Boolean)
175+
...(hasMore
176+
? [
177+
{
178+
title: "View all workspaces",
179+
value: { type: "existing-list" as const },
180+
description: "Choose from all workspaces",
181+
category: "Choose workspace",
182+
},
183+
]
184+
: []),
185+
]
184186
})
185187

186188
if (!adapters()) return null

0 commit comments

Comments
 (0)