Skip to content

Commit

Permalink
Changed the array length from pointer to a variable thanks to the sli…
Browse files Browse the repository at this point in the history
…ce method. hopefully this fix the 60% issue.
  • Loading branch information
starchap committed Oct 4, 2019
1 parent 16642af commit 479d2c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class CoSimConfigurationComponent implements OnInit {
try {
const json = JSON.parse(status);
const arr = json.results.slice(arraylength);
arraylength = json.length;
arraylength = json.results.slice(0).length;
const length = arr.length;
for (let i = 0; i < arr.length; i++) {
const obj = arr[i];
Expand Down

0 comments on commit 479d2c9

Please sign in to comment.