From 1c0c47e36b4e3ef47eb68464b7b800be3e4ceba6 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Thu, 27 Jan 2022 16:24:09 +0100 Subject: Format src/* with prettier --- src/components/List.js | 13 +++++++++---- src/index.html | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'src') 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) diff --git a/src/index.html b/src/index.html index 451fc50..a2f8a83 100644 --- a/src/index.html +++ b/src/index.html @@ -6,8 +6,8 @@ - + /> + SOC Dashboard -- cgit v1.1