mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fixed error redirection
This commit is contained in:
parent
5865cecf3e
commit
c1cf3faba9
@ -85,8 +85,9 @@ class Apps extends React.Component {
|
||||
}
|
||||
|
||||
}).catch(function (error) {
|
||||
if(error.status === 401){
|
||||
window.location = 'https://localhost:9443/publisher/login'
|
||||
if(error.response.status === 401){
|
||||
console.log("bis");
|
||||
window.location.href = 'https://localhost:9443/publisher/login';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user