Skip to content

Commit c2a007b

Browse files
committed
[Count] Only reset count when there is a predicate
1 parent e9e86e2 commit c2a007b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxQueryKit/RxQueryKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extension QuerySet {
5252
$0.entity.name == self.entityName
5353
}
5454

55-
if !updatedObjects.isEmpty {
55+
if !updatedObjects.isEmpty && self.predicate != nil {
5656
do {
5757
count = try self.count()
5858
observer.onNext(count)

0 commit comments

Comments
 (0)