mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
fix console error with rest interceptor
null pointer exception fixed
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
responseError: function(rejection){
|
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');
|
$rootScope.sessionTimer.expireSession('session_limit');
|
||||||
return $q.reject(rejection);
|
return $q.reject(rejection);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user