paginator fix in NewPageProgress case State.FullData

This commit is contained in:
stanislav 2020-09-11 12:23:10 +03:00
parent a9170e4693
commit c2ba0ce66f
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Paginator<Item>(
}
is State.NewPageProgress<*> -> {
if (items.size < pageSize) {
State.FullData(currentState.pageCount, currentState.data)
State.FullData(currentState.pageCount, currentState.data + items)
} else {
State.Data(currentState.pageCount + 1, currentState.data + items)
}