mirror of
https://github.com/taigrr/gico.git
synced 2026-04-01 18:58:59 -07:00
fix oob error for paginator
This commit is contained in:
@@ -301,9 +301,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
case graph, commitLog:
|
case graph, commitLog:
|
||||||
tmp, _ := m.GraphModel.Update(msg)
|
tmp, _ := m.GraphModel.Update(msg)
|
||||||
m.GraphModel, _ = tmp.(Graph)
|
m.GraphModel, _ = tmp.(Graph)
|
||||||
|
m.CommitLogModel.YearDay = m.GraphModel.Selected
|
||||||
|
m.CommitLogModel.Selected = 0
|
||||||
|
m.CommitLogModel.Paginator.Page = 0
|
||||||
tmpC, cmd := m.CommitLogModel.Update(msg)
|
tmpC, cmd := m.CommitLogModel.Update(msg)
|
||||||
m.CommitLogModel, _ = tmpC.(CommitLog)
|
m.CommitLogModel, _ = tmpC.(CommitLog)
|
||||||
m.CommitLogModel.YearDay = m.GraphModel.Selected
|
|
||||||
return m, cmd
|
return m, cmd
|
||||||
case settings:
|
case settings:
|
||||||
tmp, cmd := m.SettingsModel.Update(msg)
|
tmp, cmd := m.SettingsModel.Update(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user