undefined is not iterable (cannot read property Symbol(Symbol.iterator))
Answered
Cape lion posted this in #help-forum
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
Here is my code
Answered by Cape lion
https://github.com/shadcn-ui/ui/issues/2980#issuecomment-2029267475 solves the issue
1 Reply
Cape lionOP
https://github.com/shadcn-ui/ui/issues/2980#issuecomment-2029267475 solves the issue
Answer