mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 23:40:48 +00:00
ignore: improve session timeline debugging and message display functionality
This commit is contained in:
parent
e88b659545
commit
6ff0ce8bc5
3 changed files with 15 additions and 6 deletions
|
|
@ -23,6 +23,10 @@ export function List<T>(props: ListProps<T>) {
|
|||
initialActive: props.current ? props.key(props.current) : undefined,
|
||||
loop: true,
|
||||
})
|
||||
|
||||
createEffect(() => {
|
||||
if (props.current) list.setActive(props.key(props.current))
|
||||
})
|
||||
// const resetSelection = () => {
|
||||
// if (props.data.length === 0) return
|
||||
// list.setActive(props.key(props.data[0]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue