egCore.auth.token(), egCore.auth.user().ws_ou()
).then(function(cats) {
//filter out stat cats unless accessible by env
- if(egCore.env.actsc !== undefined){
- cats = cats.filter(
- function(cat) {
- egCore.env.actsc.list.find(ecat => cat.id() == ecat.id())
- }
- );
- }
+ if(egCore.env.actsc !== undefined)
+ cats = cats.filter(
+ cat =>
+ egCore.env.actsc.list.find(
+ ecat =>
+ cat.id() == ecat.id()
+ )
+ );
cats = cats.sort(function(a, b) {
return a.name() < b.name() ? -1 : 1});
angular.forEach(cats, function(cat) {