Skip to content

Commit

Permalink
fix(firestore): forEach infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Oct 22, 2021
1 parent 5b39cdc commit 6a2acca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/firebase-firestore/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ export class QuerySnapshot implements IQuerySnapshot {
const cb = thisArg ? callback.bind(thisArg) : callback;
const count = this.native.size();
const documents = this.native.getDocuments();
for (let i = 0; i < count; i) {
for (let i = 0; i < count; i++) {
cb(QueryDocumentSnapshot.fromNative(documents.get(i)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-firestore/index.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ export class QuerySnapshot implements IQuerySnapshot {
if (typeof callback === 'function') {
const cb = thisArg ? callback.bind(thisArg) : callback;
const count = this.native.count;
for (let i = 0; i < count; i) {
for (let i = 0; i < count; i++) {
cb(QueryDocumentSnapshot.fromNative(this.native.documents.objectAtIndex(i)));
}
}
Expand Down

0 comments on commit 6a2acca

Please sign in to comment.