mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-25 19:54:22 +01:00
ignore: improve session timeline debugging and message display functionality
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user