From 18fa3a95012a4bb2989ba61dd88538ef07c78369 Mon Sep 17 00:00:00 2001 From: Fernando Serrano Date: Tue, 4 Aug 2020 23:22:25 +0200 Subject: [PATCH] Fix decrement loop --- site/docs/manual/Architecture.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/manual/Architecture.md b/site/docs/manual/Architecture.md index 5df0495d..9ae7b8c8 100644 --- a/site/docs/manual/Architecture.md +++ b/site/docs/manual/Architecture.md @@ -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