fixed local bank being null on init

This commit is contained in:
Gerard 2018-10-24 14:21:35 +02:00
parent c77f77132c
commit e491b2e4ba
1 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,11 @@ class Controller {
this.showOk();
});
}
$onInit() {
if (localStorage.getItem('localBankFk'))
window.localStorage.defaultBankFk = localStorage.getItem('localBankFk');
}
}
Controller.$inject = ['$scope', '$http', '$state', 'vnApp', '$translate'];