From 865cb905282d001cf10c7325693658d02949aa34 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 18 May 2022 16:00:56 -0400 Subject: [PATCH] fix: repo last updated time --- ui/pages/selection/selection.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/pages/selection/selection.go b/ui/pages/selection/selection.go index 80998f30fd1bf07c9ec5973658babfd8fee4cb32..bb4a6ba93e5cd4e3584b8bffd984685f75c312f4 100644 --- a/ui/pages/selection/selection.go +++ b/ui/pages/selection/selection.go @@ -170,11 +170,15 @@ func (s *Selection) Init() tea.Cmd { return common.ErrorCmd(err) } lastUpdate := lc[0].Committer.When - for _, item := range items { + if lastUpdate.IsZero() { + lastUpdate = lc[0].Author.When + } + for i, item := range items { item := item.(Item) if item.repo.Repo() == r.Repo() { exists = true item.lastUpdate = lastUpdate + items[i] = item break } }