chore: cleanup

This commit is contained in:
adamdottv 2025-05-12 10:45:03 -05:00
commit 8cbfc581b5
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
28 changed files with 187 additions and 237 deletions

View file

@ -196,7 +196,7 @@ func (p *logsPage) Init() tea.Cmd {
var cmds []tea.Cmd
cmds = append(cmds, p.table.Init())
cmds = append(cmds, p.details.Init())
// Send a key down and then key up to select the first row
// This ensures the details pane is populated when returning to the logs page
cmds = append(cmds, func() tea.Msg {
@ -205,7 +205,7 @@ func (p *logsPage) Init() tea.Cmd {
cmds = append(cmds, func() tea.Msg {
return tea.KeyMsg{Type: tea.KeyUp}
})
return tea.Batch(cmds...)
}