.
This is not an issue. The problem is with your code. You defined your sum variable outside the function, so it's global. It needs to be defined inside your function so it's a local variable.
sum
Loading collection data...
.
This is not an issue. The problem is with your code. You defined your
sum
variable outside the function, so it's global. It needs to be defined inside your function so it's a local variable.