fix wrong error state

This commit is contained in:
Ivan Smolin 2017-11-02 22:28:05 +03:00
parent 02dfc709c3
commit cf6f8e9268
1 changed files with 1 additions and 2 deletions

View File

@ -70,10 +70,9 @@ public final class TotalCountCursor<LT, ET, CC: TotalCountCursorConfiguration>:
let newProductsObservable = sharedProductsListing
.map { $0.results }
.filterEmpty()
Driver
.combineLatest(newProductsObservable, Driver.just(elementsVariable.value)) {
.combineLatest(newProductsObservable.filterEmpty(), Driver.just(elementsVariable.value)) {
$0 + $1
}
.drive(elementsVariable)