Skip to content

Conversation

@Kawaizombi
Copy link

Currently, when you pass paths like this

pathListToTree([
  'test/nested',
  'test'
])

where secondary path are partial of first one the result will have node with undefined name

[
  {
    "name": "test",
    "children": [
      {
        "name": "nested",
        "children": []
      },
      {
        "name": undefined, // <- THIS ONE
        "children": []
      }
    ]
  }
]

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

Successfully merging this pull request may close these issues.

1 participant