Skip to content

Commit

Permalink
Fix query#groupEvery().
Browse files Browse the repository at this point in the history
backport from liyad (dbe126b98c5f1e08b711e580e9d524f82861325d).
  • Loading branch information
shellyln committed Sep 12, 2018
1 parent 6a6f3a6 commit eb9984f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/red-agate/src/red-agate/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export class Query<T> {
if (w.single < r.data[0].length) {
r.data.push([]);
}
} else {
if (w.first < r.data[0].length) {
// case of w.first === 0
r.data.unshift([]);
}
}
if (r.data.length > 1) {
if (r.data[r.data.length - 1].length > w.last) {
Expand Down

0 comments on commit eb9984f

Please sign in to comment.