fix overzealous filter user/lew/patron-stat-cat-map-glitch
authorLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Thu, 11 Aug 2022 18:19:06 +0000 (14:19 -0400)
committerLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Thu, 11 Aug 2022 18:22:11 +0000 (14:22 -0400)
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 3830fe2..4753a71 100644 (file)
@@ -311,13 +311,14 @@ angular.module('egCoreMod')
             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) {