Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ export function DialogThemeList() {
options={options}
current={initial}
onMove={(opt) => {
theme.set(opt.value)
if (opt) theme.set(opt.value)
}}
onSelect={(opt) => {
theme.set(opt.value)
confirmed = true
dialog.clear()
if (opt) {
theme.set(opt.value)
confirmed = true
dialog.clear()
}
}}
ref={(r) => {
ref = r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ export function DialogForkFromTimeline(props: { sessionID: string; onMove: (mess
return result
})

return <DialogSelect onMove={(option) => props.onMove(option.value)} title="Fork from message" options={options()} />
return <DialogSelect onMove={(option) => option && props.onMove(option.value)} title="Fork from message" options={options()} />
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ export function DialogTimeline(props: {
return result
})

return <DialogSelect onMove={(option) => props.onMove(option.value)} title="Timeline" options={options()} />
return <DialogSelect onMove={(option) => option && props.onMove(option.value)} title="Timeline" options={options()} />
}