Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#each nested with #let: unable to produce a unified array #23

Open
mihir83in opened this issue Jul 12, 2018 · 1 comment
Open

#each nested with #let: unable to produce a unified array #23

mihir83in opened this issue Jul 12, 2018 · 1 comment

Comments

@mihir83in
Copy link

mihir83in commented Jul 12, 2018

In the example present at https://selecttransform.github.io/site/transform.html 10. Local Variables

I want a unified array rather than array of arrays.

e.g.

{
  "rows": [
    [
      {
        "type": "label",
        "text": "Alice in Wonderland"
      },
      {
        "type": "label",
        "text": "Bob in Wonderland"
      },
      {
        "type": "label",
        "text": "Bart in Springfield"
      },
      {
        "type": "label",
        "text": "Marge in Springfield"
      },
      {
        "type": "label",
        "text": "Lisa in Springfield"
      },
      {
        "type": "label",
        "text": "Homer in Springfield"
      },
      {
        "type": "label",
        "text": "Maggie in Springfield"
      }
    ]
  ]
}

rather than

{
  "rows": [
    [
      {
        "type": "label",
        "text": "Alice in Wonderland"
      },
      {
        "type": "label",
        "text": "Bob in Wonderland"
      }
    ],
    [
      {
        "type": "label",
        "text": "Bart in Springfield"
      },
      {
        "type": "label",
        "text": "Marge in Springfield"
      },
      {
        "type": "label",
        "text": "Lisa in Springfield"
      },
      {
        "type": "label",
        "text": "Homer in Springfield"
      },
      {
        "type": "label",
        "text": "Maggie in Springfield"
      }
    ]
  ]
}

I couldn't achieve this, is it possible ?

@JakubMifek
Copy link

I did not find a solution to this problem. And so I altered the library.

I already created a pull request here. Feel free to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants