mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 22:18:01 -03:30
handle null error response
This commit is contained in:
parent
48e1fbfb38
commit
cb0367ac28
@ -48,7 +48,7 @@ class AWXLogin extends Component {
|
||||
try {
|
||||
await api.login(username, password);
|
||||
} catch (error) {
|
||||
if (error.response.status === 401) {
|
||||
if (error.response && error.response.status === 401) {
|
||||
this.setState({ isInputValid: false });
|
||||
}
|
||||
} finally {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user