I am using Axios with the Vue Javascript framework to loop through an array. I'm trying to set each element in the array to the result of the API call for that element. My functions were not running in order, so I tried using a callback function but it returns an error.
I have looked through other answers(which is why I'm trying to use a callback function) but I still can't get my code to work.
I have a CodePen that shows my problem:
https://codepen.io/thwaawaa/pen/VoEbqR
The CodePen console gives me this error:
[object Error] {
column: 19,
line: 34,
sourceURL: “some long link”
}