Code Monkey home page Code Monkey logo

Comments (3)

soupette avatar soupette commented on August 15, 2024 1

@denisgoryaynov the parent and children names are forbidden in gatsby this is why we prefixed them with strapi_ same for the id field.

from plugins.

denisgoryaynov avatar denisgoryaynov commented on August 15, 2024

Hi @soupette, I understand that those names are forbidden in gatsby and that's why they are prefixed with strapi_, the problem is that this change is not reflected when getting the data from the strapi schema when downloading images.
Inside this line of code const attribute = schema.schema.attributes[attributeName]; the schema.schema.attributes has the children and parent fields (because it is fetched from the content builder api), but they are accessed using the prefixed fields strapi_children and strapi_parent, thus returning undefined every time

from plugins.

soupette avatar soupette commented on August 15, 2024

Hi @soupette, I understand that those names are forbidden in gatsby and that's why they are prefixed with strapi_, the problem is that this change is not reflected when getting the data from the strapi schema when downloading images. Inside this line of code const attribute = schema.schema.attributes[attributeName]; the schema.schema.attributes has the children and parent fields (because it is fetched from the content builder api), but they are accessed using the prefixed fields strapi_children and strapi_parent, thus returning undefined every time

You are right! it's a bug indeed, would you mind opening a PR to fix the issue so we can make a new release?

from plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.