File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -684,7 +684,7 @@ function populateDocumentChangeBuffer(
684
684
documents : MutableDocumentMap
685
685
) : PersistencePromise < DocumentChangeResult > {
686
686
let updatedKeys = documentKeySet ( ) ;
687
- const conditionChanged = documentKeySet ( ) ;
687
+ let conditionChanged = documentKeySet ( ) ;
688
688
documents . forEach ( k => ( updatedKeys = updatedKeys . add ( k ) ) ) ;
689
689
return documentBuffer . getEntries ( txn , updatedKeys ) . next ( existingDocs => {
690
690
let changedDocs = mutableDocumentMap ( ) ;
@@ -693,7 +693,7 @@ function populateDocumentChangeBuffer(
693
693
694
694
// Check if see if there is a existence state change for this document.
695
695
if ( doc . isFoundDocument ( ) !== existingDoc . isFoundDocument ( ) ) {
696
- conditionChanged . add ( key ) ;
696
+ conditionChanged = conditionChanged . add ( key ) ;
697
697
}
698
698
699
699
// Note: The order of the steps below is important, since we want
You can’t perform that action at this time.
0 commit comments