diff options
Diffstat (limited to 'internal/tui/app.go')
-rw-r--r-- | internal/tui/app.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/tui/app.go b/internal/tui/app.go index 6031adb..fe5f364 100644 --- a/internal/tui/app.go +++ b/internal/tui/app.go @@ -219,6 +219,7 @@ func (m AppModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case updateHistoryFilter: m.historyBox.filter = HistoryFilter(msg) + m.historyBox.resetSelection() cmds = append(cmds, m.refreshCmd) case openReportModal: @@ -245,6 +246,7 @@ func (m *AppModel) filterHistoryByProjectBox() { } else { m.historyBox.filter.ProjectID = nil } + m.historyBox.resetSelection() } func (m *AppModel) openEntryEditor() { |