Skip to content

Fix bug with partial path#1

Open
Kawaizombi wants to merge 1 commit into
pthm:masterfrom
Kawaizombi:master
Open

Fix bug with partial path#1
Kawaizombi wants to merge 1 commit into
pthm:masterfrom
Kawaizombi:master

Conversation

@Kawaizombi

Copy link
Copy Markdown

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