This commit is contained in:
Rick Watson 2019-05-29 23:59:57 +01:00
parent 73433586b6
commit 3009e120a6
2 changed files with 2 additions and 3 deletions

View File

@ -61,9 +61,9 @@ export const restComponent = (endpointUrl, FormComponent) => {
redirectingAuthorizedFetch(endpointUrl, {
method: 'POST',
body: JSON.stringify(this.state.data),
headers: new Headers({
headers: {
'Content-Type': 'application/json'
})
}
})
.then(response => {
if (response.status === 200) {

View File

@ -91,7 +91,6 @@ class WiFiNetworkScanner extends Component {
this.setState({scanningForNetworks:false, networkList: json, errorMessage:null})
})
.catch(error => {
console.log(error.message);
if (error.name !== RETRY_EXCEPTION_TYPE) {
this.props.raiseNotification("Problem scanning: " + error.message);
this.setState({scanningForNetworks:false, networkList: null, errorMessage:error.message});