diff --git a/package.json b/package.json index 463a2f3e..9c37e3ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "netlify-cms", - "version": "0.3.11", + "version": "0.3.12", "description": "Netlify CMS lets content editors work on structured content stored in git", "main": "dist/cms.js", "scripts": { diff --git a/src/backends/backend.js b/src/backends/backend.js index bb1c7cc3..5d7f81f5 100644 --- a/src/backends/backend.js +++ b/src/backends/backend.js @@ -218,7 +218,7 @@ class Backend { if (file == null) { throw new Error(`No file found for ${ entry.get("slug") } in ${ collection.get('name') }`); } - return file.get('fields').toArray(); + return file.get('fields').map(f => f.get('name')).toArray(); } }