diff options
-rw-r--r-- | src/components/List.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/List.js b/src/components/List.js index 6194122..d5dcab4 100644 --- a/src/components/List.js +++ b/src/components/List.js @@ -61,7 +61,7 @@ class List extends React.Component { if (resp.status !== 200) throw `Unexpected HTTP response code from soc_collector: ${resp.status} ${resp.statusText}`; this.setState({ - totalPages: resp.headers.get("X-Total-Count") + totalPages: parseInt(resp.headers.get("X-Total-Count")) }); return resp.json(); }) |