mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
fix console error with rest interceptor
null pointer exception fixed
This commit is contained in:
parent
12d31c5099
commit
65d44287df
@ -21,7 +21,7 @@
|
||||
return config;
|
||||
},
|
||||
responseError: function(rejection){
|
||||
if( rejection.data && !_.isEmpty(rejection.data.detail) && rejection.data.detail === "Maximum per-user sessions reached"){
|
||||
if(rejection && rejection.data && rejection.data.detail && rejection.data.detail === "Maximum per-user sessions reached"){
|
||||
$rootScope.sessionTimer.expireSession('session_limit');
|
||||
return $q.reject(rejection);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user