Fix ordering when persisting a files based entry

This commit is contained in:
Mathias Biilmann Christensen 2017-02-21 23:41:40 -08:00
parent c94d6e71c9
commit 09e6f2c80e

View File

@ -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();
} }
} }