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.
- package/lib/actions/Fetch.js +2 -0
- package/package.json +1 -1
- package/src/actions/Fetch.js +2 -0
package/lib/actions/Fetch.js
CHANGED
|
@@ -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
package/src/actions/Fetch.js
CHANGED
|
@@ -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;
|