File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -231,9 +231,8 @@ export class LocalDocumentsView {
231
231
let missingBaseDocEntriesForPatching = documentKeySet ( ) ;
232
232
for ( const batch of matchingMutationBatches ) {
233
233
for ( const mutation of batch . mutations ) {
234
- const key = mutation . key ;
235
234
// Only process documents belonging to the collection.
236
- if ( ! query . path . isImmediateParentOf ( key . path ) ) {
235
+ if ( ! query . path . isImmediateParentOf ( mutation . key . path ) ) {
237
236
continue ;
238
237
}
239
238
if (
@@ -251,8 +250,8 @@ export class LocalDocumentsView {
251
250
missingBaseDocEntriesForPatching
252
251
) ;
253
252
} )
254
- . next ( baseDocsForPatching => {
255
- baseDocsForPatching . forEach ( ( key , doc ) => {
253
+ . next ( docsWithPendingPatches => {
254
+ docsWithPendingPatches . forEach ( ( key , doc ) => {
256
255
if ( doc !== null && doc instanceof Document ) {
257
256
results = results . insert ( key , doc ) ;
258
257
}
You can’t perform that action at this time.
0 commit comments