We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d251206 commit 38fd4e7Copy full SHA for 38fd4e7
1 file changed
packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx
@@ -149,7 +149,8 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
149
150
function moveTo(next: number, center = false) {
151
setStore("selected", next)
152
- props.onMove?.(selected()!)
+ const option = selected()
153
+ if (option) props.onMove?.(option)
154
if (!scroll) return
155
const target = scroll.getChildren().find((child) => {
156
return child.id === JSON.stringify(selected()?.value)
0 commit comments