Skip to content

Commit

Permalink
fix: doesn't show related contents with issue when its just have 1
Browse files Browse the repository at this point in the history
  • Loading branch information
skanehira committed Feb 20, 2021
1 parent 3b103f1 commit aed82a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func NewIssueUI() {
}

func updateUIRelatedIssue(ui *SelectUI, row int) {
if row > 0 && row < len(ui.items) {
if row > 0 && row <= len(ui.items) {
issue := ui.items[row-1].(*domain.Issue)
IssueViewUI.updateView(issue.Body)

Expand Down

0 comments on commit aed82a1

Please sign in to comment.