cms/app-client/app/serializers/theme.js
changeset 339 766af1228b05
parent 319 78990a8a069b
child 474 245b4df137d3
--- a/cms/app-client/app/serializers/theme.js	Sun Oct 16 22:23:31 2016 +0530
+++ b/cms/app-client/app/serializers/theme.js	Sun Oct 16 23:19:57 2016 +0530
@@ -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
+});