Toddle adds 'data' tag into hierarchy when parsing Directus API JSON

  • torinson99-1314137546032283701

    torinson99

    5 months ago

    Greetings. In a browser, a list of Articles from Directus API shows in the JSON hierarchy as: data < 0, 1, 2, 3, etc. but when I connect to this Directus API with Toddle, the list of articles shows up in the hierarchy within the Toddle API window as: data < data < 0,1,2,3,etc..

    So when I try to display these articles in a Snippet<Card with 'repeat' option, although the cards themselves repeat, the content within the cards (for example 'heading = article title') does not repeat.

    How can I get rid of this extra 'data' tag from the JSON API data hierarchy within Toddle, because it seems Directus' API is correct. Thanks in advance.
  • andreasmoller-1314161107631472652

    Andreas Møller

    5 months ago

    Hey.

    You can just select the data. in the formula editor
  • torinson99-1314275954192945255

    torinson99

    5 months ago

    Thanks Andreas...got it to work. 👍
  • andreasmoller-1314276012896292874

    Andreas Møller

    5 months ago

    👍