diff --git a/ui/components/issuessection/issuessection.go b/ui/components/issuessection/issuessection.go index 46165218..3138db36 100644 --- a/ui/components/issuessection/issuessection.go +++ b/ui/components/issuessection/issuessection.go @@ -405,7 +405,8 @@ func (m Model) GetTotalCount() *int { if m.IsLoading() { return nil } - return &m.TotalCount + c := m.TotalCount + return &c } func (m Model) IsLoading() bool { diff --git a/ui/components/prssection/prssection.go b/ui/components/prssection/prssection.go index 6d8c2eb9..11119fae 100644 --- a/ui/components/prssection/prssection.go +++ b/ui/components/prssection/prssection.go @@ -175,6 +175,7 @@ func (m Model) Update(msg tea.Msg) (section.Section, tea.Cmd) { m.Table.SetRows(m.BuildRows()) m.Table.UpdateLastUpdated(time.Now()) m.UpdateTotalItemsCount(m.TotalCount) + } } @@ -502,7 +503,8 @@ func (m Model) GetTotalCount() *int { if m.IsLoading() { return nil } - return &m.TotalCount + c := m.TotalCount + return &c } func (m Model) IsLoading() bool { diff --git a/ui/components/reposection/reposection.go b/ui/components/reposection/reposection.go index 83adc592..d2a7374e 100644 --- a/ui/components/reposection/reposection.go +++ b/ui/components/reposection/reposection.go @@ -554,7 +554,8 @@ func (m *Model) GetTotalCount() *int { return nil } - return utils.IntPtr(len(m.Branches)) + c := len(m.Branches) + return &c } func (m *Model) SetIsLoading(val bool) {