1👍
✅
Here we go for the saving solution : I use let
for the declaration of text
, it will solve the closure issue.
let text = articles[i].fields.text;
( What's the difference between using "let" and "var" to declare a variable? )
I hope this is a good solution 🙂
Source:stackexchange.com