mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
fix console error with rest interceptor
null pointer exception fixed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user