Pagination/sorting fixes & improvements
This commit is contained in:
@@ -199,7 +199,7 @@ func (s Store) {{ unexport "fetchFullPageOf" $.Types.Plural }} (
|
||||
|
||||
// if limit is not set or we've already collected enough items
|
||||
// we can break the loop right away
|
||||
if limit == 0 || fetched == 0 || fetched < limit {
|
||||
if limit == 0 || fetched == 0 || fetched <= limit {
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user