redux-clerk2 2.0.23 → 2.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -172,6 +172,8 @@ var Fetch = exports.Fetch = function (_BaseAction) {
172
172
  //successHandler(response.data.data);
173
173
  if (response.headers['x-total-count'] !== undefined) {
174
174
  additionalData.total = Number.parseInt(response.headers['x-total-count'], 10);
175
+ } else if (response.data.summary && response.data.summary.total) {
176
+ additionalData.total = Number.parseInt(response.data.summary.total, 10);
175
177
  }
176
178
  if (response.data.summary) {
177
179
  additionalData.summary = response.data.summary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redux-clerk2",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "Redux Clerk handles the async CRUD in your Redux App.",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -151,6 +151,8 @@ export class Fetch extends BaseAction {
151
151
  //successHandler(response.data.data);
152
152
  if(response.headers['x-total-count'] !== undefined){
153
153
  additionalData.total = Number.parseInt(response.headers['x-total-count'], 10);
154
+ }else if(response.data.summary && response.data.summary.total){
155
+ additionalData.total = Number.parseInt(response.data.summary.total, 10);
154
156
  }
155
157
  if(response.data.summary){
156
158
  additionalData.summary = response.data.summary;