We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1a053 commit 23ccb3aCopy full SHA for 23ccb3a
pkg/model/uimodel.go
@@ -103,8 +103,10 @@ func (u *UIModel) View() string {
103
u.paginator.Page = u.paginator.TotalPages - 1
104
}
105
start, end := u.paginator.GetSliceBounds(stats.NumNodes)
106
- for _, n := range stats.Nodes[start:end] {
107
- u.writeNodeInfo(n, ctw, u.cluster.resources)
+ if start >= 0 && end >= start {
+ for _, n := range stats.Nodes[start:end] {
108
+ u.writeNodeInfo(n, ctw, u.cluster.resources)
109
+ }
110
111
ctw.Flush()
112
0 commit comments