Skip to content

Commit 2eb1860

Browse files
committed
Fix to #1027 to allow SnapshotVersion == 0
1 parent 2d7a74c commit 2eb1860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firestore/src/local/query_data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export class QueryData {
7070
this.query,
7171
this.targetId,
7272
this.purpose,
73-
overwrite.snapshotVersion || this.snapshotVersion,
74-
overwrite.resumeToken || this.resumeToken
73+
overwrite.snapshotVersion === undefined ? this.snapshotVersion : overwrite.snapshotVersion,
74+
overwrite.resumeToken === undefined ? this.resumeToken : overwwrite.resumeToken
7575
);
7676
}
7777

0 commit comments

Comments
 (0)