webstaff: fix console noise spawned by OU selector
[Evergreen.git] / Open-ILS / web / js / ui / default / staff / services / ui.js
index f5ce418..4fe04a7 100644 (file)
@@ -348,7 +348,7 @@ function($modal, $interpolate) {
             });
 
             $scope.getSelectedName = function() {
-                if ($scope.selected)
+                if ($scope.selected && $scope.selected.shortname)
                     return $scope.selected.shortname();
                 return $scope.label;
             }