File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,10 @@ export class LocalDocumentsView {
227
227
) ;
228
228
}
229
229
const newSet = documentsByBatchId . get ( batch . batchId ) ! . add ( key ) ;
230
- documentsByBatchId . insert ( batch . batchId , newSet ) ;
230
+ documentsByBatchId = documentsByBatchId . insert (
231
+ batch . batchId ,
232
+ newSet
233
+ ) ;
231
234
} ) ;
232
235
} ) ;
233
236
} )
Original file line number Diff line number Diff line change @@ -429,12 +429,12 @@ export function localStoreAcknowledgeBatch(
429
429
function getKeysWithTransformResults (
430
430
batchResult : MutationBatchResult
431
431
) : DocumentKeySet {
432
- const result = documentKeySet ( ) ;
432
+ let result = documentKeySet ( ) ;
433
433
434
434
for ( let i = 0 ; i < batchResult . mutationResults . length ; ++ i ) {
435
435
const mutationResult = batchResult . mutationResults [ i ] ;
436
436
if ( mutationResult . transformResults . length > 0 ) {
437
- result . add ( batchResult . batch . mutations [ i ] . key ) ;
437
+ result = result . add ( batchResult . batch . mutations [ i ] . key ) ;
438
438
}
439
439
}
440
440
return result ;
You can’t perform that action at this time.
0 commit comments