Skip to content

Commit 4257e63

Browse files
committed
feat: handle FetchFailedMsg
1 parent 7207009 commit 4257e63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/root.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
6464
fetchModel, fetchCmd := m.fetch.Update(msg)
6565
m.fetch = fetchModel.(github.FetchingModel)
6666
return m, fetchCmd
67+
case github.FetchFailedMsg:
68+
fetchModel, fetchCmd := m.fetch.Update(msg)
69+
m.fetch = fetchModel.(github.FetchingModel)
70+
return m, fetchCmd
6771
case github.SearchFinishedMsg:
6872
searchModel, searchCmd := m.search.Update(msg)
6973
m.search = searchModel.(github.SearchModel)

0 commit comments

Comments
 (0)