Describe the bug
When defining a data type which has a array as member, the fields dont get loaded and stored correctly.
To Reproduce
Steps to reproduce the behavior:
- Create a new project
- Initialize frontmatter
- Add following to
frontmatter.json
"frontMatter.data.types": [
{
"id": "bass_player",
"schema": {
"title": "Bass Player",
"type": "object",
"required": ["discography"],
"properties": {
"name": {
"type": "string"
},
"discography": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
],
"frontMatter.data.folders": [
{
"id": "bass_players",
"path": "[[workspace]]/data/jazz/bass",
"type": "bass_player",
"singleEntry": true
}
]
- Add a data file:
data/jazz/bass/jacopastorius.json:
"name": "Jaco Pastorius",
"discography": [
"1974 - Modern American Music … Period! The Criteria Sessions",
"2003 - Punk Jazz: The Jaco Pastorius Anthology (compilation)",
"2007 - The Essential Jaco Pastorius (compilation)"
]
- Open the data view in front matter
Expected behavior
That arrays are editable in the data view.
Screenshots
Version 8.2.0:

Version 8.3.0:

Desktop (please complete the following information):
- OS: Linux
- Browser VScode
- Version 1.76.0
Additional context
Seems mostly due to this line being commented out:
|
// name: (child.props.name || '').replace('$', '' + itemIndex), |
Describe the bug
When defining a data type which has a array as member, the fields dont get loaded and stored correctly.
To Reproduce
Steps to reproduce the behavior:
frontmatter.jsondata/jazz/bass/jacopastorius.json:Expected behavior
That arrays are editable in the data view.
Screenshots

Version 8.2.0:
Version 8.3.0:

Desktop (please complete the following information):
Additional context
Seems mostly due to this line being commented out:
vscode-front-matter/src/components/uniforms-frontmatter/ListField.tsx
Line 35 in d364bde