Skip to content

Commit 6a2acca

Browse files
committed
fix(firestore): forEach infinite loop
1 parent 5b39cdc commit 6a2acca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/firebase-firestore/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export class QuerySnapshot implements IQuerySnapshot {
811811
const cb = thisArg ? callback.bind(thisArg) : callback;
812812
const count = this.native.size();
813813
const documents = this.native.getDocuments();
814-
for (let i = 0; i < count; i) {
814+
for (let i = 0; i < count; i++) {
815815
cb(QueryDocumentSnapshot.fromNative(documents.get(i)));
816816
}
817817
}

packages/firebase-firestore/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ export class QuerySnapshot implements IQuerySnapshot {
730730
if (typeof callback === 'function') {
731731
const cb = thisArg ? callback.bind(thisArg) : callback;
732732
const count = this.native.count;
733-
for (let i = 0; i < count; i) {
733+
for (let i = 0; i < count; i++) {
734734
cb(QueryDocumentSnapshot.fromNative(this.native.documents.objectAtIndex(i)));
735735
}
736736
}

0 commit comments

Comments
 (0)