cms/app-client/app/serializers/theme.js
changeset 319 78990a8a069b
parent 179 9b703ece424f
child 474 245b4df137d3
--- 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
+});