.map is not a function
# 🤝help
t
My code is saying cancel.map is not a function although the workflow variable cancel is assigned as an array. I did this same format of code successfully with a different array variable from a diff api. How can I fix this?

https://cdn.discordapp.com/attachments/1134511091968385176/1134511092522045461/Screenshot_2023-07-28_114201.png

w
Hey 👋 it's the response coming back from your url that is not an array. variable definitions are only typings, you have to respect it 🙂 If you add some data that is not an array in an array variable, then you are responsible for respecting the type you set
t
hi eff, I did this same code for a variable and it worked fine. Is this working variable an array? how can I achieve this same output with the current variable? thanks

https://cdn.discordapp.com/attachments/1134511091968385176/1134544538254450780/Screenshot_2023-07-28_135347.png

w
I'm sorry I have a hard time understanding what you're trying to achieve. Can you be a little more precise on what is working, what is not. Please use the variable names otherwise I can't help