Skip to content

Commit 3ac7458

Browse files
authored
fix (#149)
1 parent 6f604f9 commit 3ac7458

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ui/components/issue/issue.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import (
1111
)
1212

1313
type Issue struct {
14-
Data data.IssueData
15-
Width int
14+
Data data.IssueData
1615
}
1716

1817
func (issue *Issue) ToTableRow() table.Row {

ui/components/issuessection/issuessection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func GetSectionColumns() []table.Column {
126126
func (m *Model) BuildRows() []table.Row {
127127
var rows []table.Row
128128
for _, currIssue := range m.Issues {
129-
issueModel := issue.Issue{Data: currIssue, Width: m.GetDimensions().Width}
129+
issueModel := issue.Issue{Data: currIssue}
130130
rows = append(rows, issueModel.ToTableRow())
131131
}
132132

ui/components/prssection/prssection.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ func (m *Model) BuildRows() []table.Row {
131131
rows = append(rows, prModel.ToTableRow())
132132
}
133133

134+
if rows == nil {
135+
rows = []table.Row{}
136+
}
137+
134138
return rows
135139
}
136140

0 commit comments

Comments
 (0)