--- a/cms/app-client/app/serializers/theme.js Mon Oct 03 16:32:41 2016 +0200
+++ b/cms/app-client/app/serializers/theme.js Tue Oct 04 11:58:39 2016 +0200
@@ -4,13 +4,14 @@
normalizeResponse: function(store, primaryModelClass, payload) {
var data = [];
- Object.keys(payload).forEach(function(key) {
+ var themes = payload['themes'];
+ Object.keys(themes).forEach(function(key) {
data.push({
'id': key,
'type': 'theme',
'attributes': {
- 'label': payload[key].label,
- 'count': payload[key].count
+ 'label': themes[key].label,
+ 'count': themes[key].count
}
});
});
@@ -19,4 +20,4 @@
};
}
-});
\ No newline at end of file
+});