Skip to content

Commit 10587ca

Browse files
Fix
1 parent 9171ff3 commit 10587ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/local/indexeddb_remote_document_cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class IndexedDbRemoteDocumentCacheImpl implements IndexedDbRemoteDocumentCache {
146146
.get(dbKey(documentKey))
147147
.next(dbRemoteDoc => {
148148
const doc = this.maybeDecodeDocument(documentKey, dbRemoteDoc);
149-
return doc
149+
return doc.isValidDocument()
150150
? {
151151
document: doc,
152152
size: dbDocumentSize(dbRemoteDoc!)

0 commit comments

Comments
 (0)