Skip to content

Commit

Permalink
refactor(revisions): use dedicated method
Browse files Browse the repository at this point in the history
  • Loading branch information
idursun committed Feb 28, 2025
1 parent caf6d9c commit 7c7b154
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/ui/revisions/revisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
curSelected := m.SelectedRevision()
if preSelectedRevision != curSelected {
cmds = append(cmds, func() tea.Msg {
return common.SelectionChangedMsg{}
})
cmds = append(cmds, common.SelectionChanged)
m.context.SetSelectedItem(common.SelectedRevision{ChangeId: curSelected.ChangeId})
}
return m, tea.Batch(cmds...)
Expand Down

0 comments on commit 7c7b154

Please sign in to comment.