--- a/cms/app-client/mirage/serializers/theme.js Fri Jun 09 15:22:02 2017 +0200
+++ b/cms/app-client/mirage/serializers/theme.js Sat Jun 10 08:33:03 2017 +0200
@@ -1,6 +1,6 @@
import { JSONAPISerializer } from 'ember-cli-mirage';
-import _ from 'lodash/lodash';
+import _ from 'lodash';
export default JSONAPISerializer.extend({
@@ -45,7 +45,7 @@
array = response.models;
}
return {
- themes: _(array).map((theme) => { return [theme.id, { count: theme.count, label: theme.label }]; }).object().value(),
+ themes: _(array).map((theme) => { return [theme.id, { count: theme.count, label: theme.label }]; }).fromPairs().value(),
meta: {
total: total
}