diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/List.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/components/List.js b/src/components/List.js index 43a9b3c..cd60e4e 100644 --- a/src/components/List.js +++ b/src/components/List.js @@ -52,11 +52,16 @@ class List extends React.Component { // Fetch data from external source, update state getData() { - fetch(window.injectedEnv.COLLECTOR_URL + "/sc/v0/get?" + this.queryString(), { - headers: { - Authorization: "Bearer " + this.props.token + fetch( + window.injectedEnv.COLLECTOR_URL + + "/sc/v0/get?" + + this.queryString(), + { + headers: { + Authorization: "Bearer " + this.props.token + } } - }) + ) // TODO: Look at `status` or return code or both? .then(resp => { if (resp.status !== 200) |
