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):
**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:
1. Create a new project
2. Initialize frontmatter
3. Add following to `frontmatter.json`
```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
}
]
```
5. Add a data file: `data/jazz/bass/jacopastorius.json`:
```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)"
]
```
6. 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:
https://github.com/estruyf/vscode-front-matter/blob/d364bde59dad6e9433c4932fb7acb96ef107233c/src/components/uniforms-frontmatter/ListField.tsx#L35
<!-- github-sync-id:1620212453 -->
Thank you @Mai-Lapyst, for reporting and investigating the issue. The prettier changes that were PR-ed recently accidentally commented on this line.
I have reverted the change and tested it with your configuration. The fix is now included in the latest beta.
Thank you @Mai-Lapyst, for reporting and investigating the issue. The prettier changes that were PR-ed recently accidentally commented on this line.
I have reverted the change and tested it with your configuration. The fix is now included in the latest beta.
<!-- github-comment-id:1465666434 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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:
https://github.com/estruyf/vscode-front-matter/blob/d364bde59dad6e9433c4932fb7acb96ef107233c/src/components/uniforms-frontmatter/ListField.tsx#L35
Thank you @Mai-Lapyst, for reporting and investigating the issue. The prettier changes that were PR-ed recently accidentally commented on this line.
I have reverted the change and tested it with your configuration. The fix is now included in the latest beta.
@estruyf thanks for the qiuck response; have tested the beta, and can confirm that it works now