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",
|
"name": "netlify-cms",
|
||||||
"version": "0.3.10",
|
"version": "0.3.11",
|
||||||
"description": "Netlify CMS lets content editors work on structured content stored in git",
|
"description": "Netlify CMS lets content editors work on structured content stored in git",
|
||||||
"main": "dist/cms.js",
|
"main": "dist/cms.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -218,7 +218,7 @@ class Backend {
|
|||||||
if (file == null) {
|
if (file == null) {
|
||||||
throw new Error(`No file found for ${ entry.get("slug") } in ${ collection.get('name') }`);
|
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