From fffdd065235e2c2da859448fb9f6231f58f15e69 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Mon, 25 Apr 2022 11:06:42 +0200 Subject: Only consider return code from collector --- src/components/ListView.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/components/ListView.js') diff --git a/src/components/ListView.js b/src/components/ListView.js index 409c802..55d137e 100644 --- a/src/components/ListView.js +++ b/src/components/ListView.js @@ -62,7 +62,6 @@ class ListView extends React.Component { } } ) - // TODO: Look at `status` or return code or both? .then(resp => { if (resp.status !== 200) throw new Error( @@ -74,10 +73,6 @@ class ListView extends React.Component { return resp.json(); }) .then(json => { - if (json.status != "success") - throw new Error( - `Unexpected status from soc_collector: ${json.status}` - ); this.setState({ scans: json.docs.map(d => ({ ...d, -- cgit v1.1