fix ui
This commit is contained in:
		@@ -61,9 +61,9 @@ export const restComponent = (endpointUrl, FormComponent) => {
 | 
				
			|||||||
        redirectingAuthorizedFetch(endpointUrl, {
 | 
					        redirectingAuthorizedFetch(endpointUrl, {
 | 
				
			||||||
          method: 'POST',
 | 
					          method: 'POST',
 | 
				
			||||||
          body: JSON.stringify(this.state.data),
 | 
					          body: JSON.stringify(this.state.data),
 | 
				
			||||||
          headers: new Headers({
 | 
					          headers: {
 | 
				
			||||||
            'Content-Type': 'application/json'
 | 
					            'Content-Type': 'application/json'
 | 
				
			||||||
          })
 | 
					          }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
          .then(response => {
 | 
					          .then(response => {
 | 
				
			||||||
            if (response.status === 200) {
 | 
					            if (response.status === 200) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -91,7 +91,6 @@ class WiFiNetworkScanner extends Component {
 | 
				
			|||||||
        this.setState({scanningForNetworks:false, networkList: json, errorMessage:null})
 | 
					        this.setState({scanningForNetworks:false, networkList: json, errorMessage:null})
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    .catch(error => {
 | 
					    .catch(error => {
 | 
				
			||||||
      console.log(error.message);
 | 
					 | 
				
			||||||
      if (error.name !== RETRY_EXCEPTION_TYPE) {
 | 
					      if (error.name !== RETRY_EXCEPTION_TYPE) {
 | 
				
			||||||
        this.props.raiseNotification("Problem scanning: " + error.message);
 | 
					        this.props.raiseNotification("Problem scanning: " + error.message);
 | 
				
			||||||
        this.setState({scanningForNetworks:false, networkList: null, errorMessage:error.message});
 | 
					        this.setState({scanningForNetworks:false, networkList: null, errorMessage:error.message});
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user