Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Fix decrement loop
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandojsg committed Aug 4, 2020
1 parent fdb5544 commit 18fa3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/manual/Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ for (var i = 0; i < results.length; i++) {

// The correct way to do it
let results = this.queries.queryA.results;
for (var i = 0; i < results.length; i++) {
for (var i = results.length - 1; i >= 0; i++) {
let entity = results[i];
if (i === 1) {
// This will modify the length of the results but as we are moving backward it won't affect us
Expand Down

0 comments on commit 18fa3a9

Please sign in to comment.