Skip to content

Commit

Permalink
DataGrid(T1162057): Fix logic of the isContinuationOnNextPage flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Vinogradov committed Apr 29, 2023
1 parent f19024e commit 3849942
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/ui/grid_core/ui.grid_core.data_source_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ export default modules.Controller.inherit((function() {
if(skips.length) {
result.isContinuation = true;
}
if(takes.length) {
result.isContinuationOnNextPage = true;

if(take) {
result.isContinuationOnNextPage = cacheItem.count > take;
}

for(let i = 0; take === undefined ? items[i + skip] : i < take; i++) {
const childCacheItem = items[i + skip];
const isLast = i + 1 === take;
Expand Down

0 comments on commit 3849942

Please sign in to comment.