Next.js Discord

Discord Forum

undefined is not iterable (cannot read property Symbol(Symbol.iterator))

Answered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
I am facing this issue , my code look fine even if the dynamic data is undefined i have or condition to let it as an empty array and map over it but still the nextjs is throwing this type error I have added the snippet of complete code as well as the code is facing an issue in , also if i use simple select it working pretty fine on same data and i can the categories without any issue
Here is my code

1 Reply

Cape lionOP
Answer