Currently an entry in the config file with the following structure will cause an error (and the page will not load). Note that this is the pattern set in the README.
{
"title": "Buttons",
"children": [
{
"title": "Primary Button",
"url": "button-primary"
},
{
"title": "Secondary Button",
"url": "button-secondary"
}
]
}
This is the error produced in the console: Uncaught (in promise) TypeError: e.item.children is undefined
Currently, the workaround is to add an empty children: [] line.
{
"title": "Buttons",
"children": [
{
"title": "Primary Button",
"url": "button-primary",
"children": []
},
{
"title": "Secondary Button",
"url": "button-secondary",
"children": []
}
]
}
Suggested action
- Confirm bug
- Update README w/ current preferred structure (if creating a fix is not quick)
- Create a fix so
children: [] is not needed.
Currently an entry in the config file with the following structure will cause an error (and the page will not load). Note that this is the pattern set in the README.
This is the error produced in the console:
Uncaught (in promise) TypeError: e.item.children is undefinedCurrently, the workaround is to add an empty
children: []line.Suggested action
children: []is not needed.