Merge pull request #241 from netlify/fix-order-for-fields-in-files-collections
Fix ordering when persising a files based entry
This commit is contained in:
commit
57ec140363
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "netlify-cms",
|
||||
"version": "0.3.10",
|
||||
"version": "0.3.11",
|
||||
"description": "Netlify CMS lets content editors work on structured content stored in git",
|
||||
"main": "dist/cms.js",
|
||||
"scripts": {
|
||||
|
@ -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');
|
||||
return file.get('fields').toArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user