removed extra condition in paginator
This commit is contained in:
parent
23c8a987c1
commit
f2c972d69f
|
|
@ -90,7 +90,7 @@ class Paginator<Item>(
|
|||
}
|
||||
}
|
||||
is State.NewPageProgress<*> -> {
|
||||
if (items.isEmpty() || items.size < pageSize) {
|
||||
if (items.size < pageSize) {
|
||||
State.FullData(currentState.pageCount, currentState.data)
|
||||
} else {
|
||||
State.Data(currentState.pageCount + 1, currentState.data + items)
|
||||
|
|
|
|||
Loading…
Reference in New Issue