diff --git a/pkg/gui/presentation/remote_branches.go b/pkg/gui/presentation/remote_branches.go index 55e4bc113..5b9297cbb 100644 --- a/pkg/gui/presentation/remote_branches.go +++ b/pkg/gui/presentation/remote_branches.go @@ -9,6 +9,12 @@ import ( func GetRemoteBranchListDisplayStrings(branches []*models.RemoteBranch, diffName string) [][]string { return lo.Map(branches, func(branch *models.RemoteBranch, _ int) []string { + if branch == nil { + if icons.IsIconEnabled() { + return []string{"", ""} + } + return []string{""} + } diffed := branch.FullName() == diffName return getRemoteBranchDisplayStrings(branch, diffed) })