diff options
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r-- | client/src/app/shared/rest/rest-data-source.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/rest/rest-data-source.ts b/client/src/app/shared/rest/rest-data-source.ts index 847dd7c56..1def38c73 100644 --- a/client/src/app/shared/rest/rest-data-source.ts +++ b/client/src/app/shared/rest/rest-data-source.ts | |||
@@ -8,14 +8,14 @@ export class RestDataSource extends ServerDataSource { | |||
8 | endPoint: endpoint, | 8 | endPoint: endpoint, |
9 | sortFieldKey: 'sort', | 9 | sortFieldKey: 'sort', |
10 | dataKey: 'data' | 10 | dataKey: 'data' |
11 | } | 11 | }; |
12 | 12 | ||
13 | super(http, options); | 13 | super(http, options); |
14 | } | 14 | } |
15 | 15 | ||
16 | protected extractTotalFromResponse(res) { | 16 | protected extractTotalFromResponse(res) { |
17 | const rawData = res.json(); | 17 | const rawData = res.json(); |
18 | return rawData ? parseInt(rawData.total): 0; | 18 | return rawData ? parseInt(rawData.total) : 0; |
19 | } | 19 | } |
20 | 20 | ||
21 | protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { | 21 | protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { |