Skip to content
Snippets Groups Projects
Commit a83871db authored by Panagis Tselentis's avatar Panagis Tselentis
Browse files

Fix data not defined error

parent 1a56a8b6
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@
responseError: function responseErrorCallback(response) {
if (response.status === 401 || response.status === 403) {
if(data.logout) {
if(response.data && response.data.logout) {
$localStorage.$reset();
var $state = $injector.get('$state');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment