summaryrefslogtreecommitdiff
path: root/src/components/List.js
diff options
context:
space:
mode:
authorErnst Widerberg <ernst@sunet.se>2022-01-27 16:24:09 +0100
committerErnst Widerberg <ernst@sunet.se>2022-01-27 16:24:09 +0100
commit1c0c47e36b4e3ef47eb68464b7b800be3e4ceba6 (patch)
treeaae472fb9432a991a02eff1af29e0599fdfc80b0 /src/components/List.js
parent05ef26253195a9c4a4f4f41d57dab1eb8fe2a06d (diff)
Format src/* with prettier
Diffstat (limited to 'src/components/List.js')
-rw-r--r--src/components/List.js13
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)