getting error with GitLab code
Options
![David Richardson](https://us.v-cdn.net/6037124/user_avatars/2509231.jpg)
David Richardson
Member ✭
I am follow a roadmap laid out in WMX • Part 2 • How to build a Membership site with Webflow, MemberStack, and Xano but using different data - art instead of restaurants.
my API ( https://x8ki-letl-twmt.n7.xano.io/api:arLEd2EP/artworks ) gets the correct JSON myResult.
const myArray = JSON.parse(myResult);
line 36 of Prakash's GitLab script is:
data.forEach(restaurant => {
my JSON payload is just named different: "myArray" but on my equivalent of line 36... line 97 in my script. But...
myArray.forEach(items => {
produces an error: "Type error: myArray.forEach is not a function"
[not a function two.jpg]
I'd welcome some help on the issue. Thanks!
Xano API is: https://x8ki-letl-twmt.n7.xano.io/api:arLEd2EP/artworks
Project URL is: https://www.helps-austin.com/gallery
Codepen link: https://codepen.io/david78737/pen/yLPmpGo
Webflow project link is: https://preview.webflow.com/preview/davids-cool-project-9b22c7?utm_medium=preview_link&utm_source=designer&utm_content=davids-cool-project-9b22c7&preview=454984bc0992fefc4eb788f0bcda7382&pageId=619e936184f97ca3728c9492&workflow=preview
my API ( https://x8ki-letl-twmt.n7.xano.io/api:arLEd2EP/artworks ) gets the correct JSON myResult.
const myArray = JSON.parse(myResult);
line 36 of Prakash's GitLab script is:
data.forEach(restaurant => {
my JSON payload is just named different: "myArray" but on my equivalent of line 36... line 97 in my script. But...
myArray.forEach(items => {
produces an error: "Type error: myArray.forEach is not a function"
[not a function two.jpg]
I'd welcome some help on the issue. Thanks!
Xano API is: https://x8ki-letl-twmt.n7.xano.io/api:arLEd2EP/artworks
Project URL is: https://www.helps-austin.com/gallery
Codepen link: https://codepen.io/david78737/pen/yLPmpGo
Webflow project link is: https://preview.webflow.com/preview/davids-cool-project-9b22c7?utm_medium=preview_link&utm_source=designer&utm_content=davids-cool-project-9b22c7&preview=454984bc0992fefc4eb788f0bcda7382&pageId=619e936184f97ca3728c9492&workflow=preview
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback